Part Number Hot Search : 
E005007 TDA8050T CD9012 6910HR YD456 MMBTH11 NTE254 82C288
Product Description
Full Text Search
 

To Download ADE7754 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rev. prg 01/03 preliminary technical data information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of analog devices. a preliminary technical data ADE7754* one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781/329-4700 world wide web site: http://www.analog.com fax: 781/326-8703 ? analog devices, inc., 2003 poly-phase multi-function energy metering ic with serial port functional block diagram features high accuracy, supports iec 687/61036 compatible with 3-phase/3-wire, 3-phase/4-wire and any type of 3-phase services less than 0.1% error in active power measurement over a dynamic range of 1000 to 1 the ADE7754 supplies active energy, apparent energy , voltage rms , current rms and sampled waveform data . digital power, phase & input offset calibration. an on-chip temperature sensor (3c typ. after calibration) on-chip user programmable thresholds for line voltage sag and overdrive detections. a spi compatible serial interface with interrupt request line (irq). a pulse output with programmable frequency proprietary adcs and dsp provide high accuracy over large variations in environmental conditions and time. reference 2.4v8% (drift 30 ppm/c typical) with external overdrive capability single 5v supply, low power (80mw typical) the ADE7754 provides different solutions to measure active and apparent energy from the six analog inputs thus en- abling the use of the ADE7754 in various power meter services as 3-phase 4-wire, 3-phase 3-wire but also 4-wire delta. in addition to rms calculation, real and apparent power informations, the ADE7754 provides system calibration features for each phase, i.e., channel offset correction, phase calibration and gain calibration. the cf logic output gives instantaneous real power information. the ADE7754 has a waveform sample register which enables access to adc outputs. the part also incorporates a detec- tion circuit for short duration low or high voltage variations. the voltage threshold levels and the duration (no. of half line cycles) of the variation are user programmable. a zero crossing detection is synchronized which the zero crossing point of the line voltage of each of the three phases. this information is used to measure each line?s period. it is also used internally to the chip in the line active energy and line apparent energy accumulation modes. this permits faster and more accurate calibration of the power calcula- tions. this signal is also useful for synchronization of relay switching. data is read from the ADE7754 via the spi serial interface. the interrupt request output ( irq ) is an open drain, active low logic output. the irq output will go active low when one or more interrupt events have occurred in the ADE7754. a status register will indicate the nature of the interrupt. the ADE7754 is available in a 24-lead soic package. * patents pending. cs irq ADE7754 registers & serial interface temp sensor adc 2.5v ref 4k ? cfnum cfden dfc wdiv adc pga1 adc pga2 adc pga1 adc pga2 ADE7754 power supply monitor hpf aphcal aapos lpf2 awg adc pga1 adc pga2 airmsos avag avrmsos vadiv bapos lpf2 bwg birmsos bvag bvrmsos capos lpf2 cwg cirmsos cvag cvrmsos avgain aapgain hpf bvgain bapgain hpf cvgain capgain bphcal cphcal ibp ibn vbp vn icp icn vcp iap ian vap 7 8 15 10 14 13 5 6 16 avdd reset 17 4 clkout clkin dgnd 20 19 2 dvdd 3 cf 1 ref in/out agnd sclk dout din 11 12 22 24 23 21 18 |x| abs |x| abs |x| abs x 2 x 2 x 2 x 2 x 2 x 2 general description the ADE7754 is a high accuracy poly-phase electrical energy measurement ic with a serial interface and a pulse output. the ADE7754 incorporates second order sigma- delta adcs, reference circuitry, temperature sensor, and all the signal processing required to perform active, apparent energy measurements and rms calculation.
rev. prg 01/03 preliminary technical data ?2? ADE7754?specifications (avdd = dvdd = 5v5%, agnd = dgnd = 0v, on-chip reference, clkin=10mhz, tmin to tmax = -40oc to +85oc) parameters units test conditions/comments accuracy active power measurement error 0.1 % typ over a dynamic range of 1000 to 1 phase error between channels (pf=0.8 capacitive) 0.05 o max phase lead 37o (pf=0.5 inductive) 0.05 o max phase lag 60o ac power supply rejection 1 output frequency variation 0.01 % typ iap/n=ibp/n=icp/n= 100mv rms dc power supply rejection 1 output frequency variation 0.01 % typ iap/n=ibp/n=icp/n= 100mv rms analog inputs maximum signal levels 500 mv peak max differential input: v ap -v n, v bp -v n, v cp -v n i ap -i an , i bp -i bn, i cp -i cn input impedance (dc) 400 k  min bandwidth (-3db) 14 khz typ adc offset error 1 25 mv max uncalibrated error, see terminology for detail gain error 1 8 % typ external 2.5v reference gain error match 1 3 % typ external 2.5v reference reference input ref in/out input voltage range 2.6 v max 2.4v +8% 2.2 v min 2.4v -8% input impedance 4 k w m m wms
rev. prg 01/03 preliminary technical data ?3? ADE7754 ADE7754 timing characteristics 1,2 parameter units test conditions/comments write timing t 1 50 ns (min)  falling edge to first sclk falling edge t 2 50 ns (min) sclk logic high pulse width t 3 50 ns (min) sclk logic low pulse width t 4 10 ns (min) v alid data set up time before falling edge of sclk t 5 5 ns (min) data hold time after sclk falling edge t 6 400 ns (min) minimum time between the end of data byte transfers. t 7 50 ns (min) minimum time between byte transfers during a serial write. t 8 100 ns (min)  hold time after sclk falling edge. read timing t 9 5 4  s (min) minimum time between read command (i.e. a write to communication register) and data read. t 10 50 ns (min) minimum time between data byte transfers during a multibyte read. t 11 3 30 ns (min) data access time after sclk rising edge following a write to the communications register t 12 4 100 ns (max) bus relinquish time after falling edge of sclk. 10 ns (min) t 13 4 100 ns (max) bus relinquish time after rising edge of  . 10 ns (min) serial read timing serial write timing cs sclk din a4 a3 a2 a1 a0 db7 most significant byte t 1 t 2 t 3 t 4 t 5 t 8 1 db0 db7 db0 t 6 least significant byte t 7 t 7 0 command byte a5 cs sclk din a4 a3 a2 a1 a0 t 1 t 11 t 12 t 9 db7 dout t 13 db0 db0 db7 t 10 t 14 most significant byte least significant byte 00 command byte a5 (av dd = dv dd = 5v 5%, agnd = dgnd = 0v, on-chip reference, clkin = 10mhz xtal, tmin to tmax = -40c to +85c) figure 1 - load circuit for timing specifications 200 a 1.6 ma i oh i ol c l 50pf to output pin +2.1 v notes 1 sample tested during initial release and after any redesign or process change that may affect this parameter. all input signals are specified with tr = tf = 5ns (10% to 90%) and timed from a voltage level of 1.6v. 2 see timing diagram below and serial interface section of this data sheet. 3 measured with the load circuit in figure 1 and defined as the time required for the output to cross 0.8v or 2.4v. 4 derived from the measured time taken by the data outputs to change 0.5v when loaded with the circuit in figure 1. the measured number is then extrapolated back to remove the effects of charging or discharging the 50pf capacitor. this means that the time quoted in the timing characteristics is the true bus relinquish time of the part and is independent of the bus loading. 5 minimum time between read command and data read for all registers except wavform register. for wavform register t 9 =500ns min
rev. prg 01/03 preliminary technical data ADE7754 ? 4 ? caution esd (electrostatic discharge) sensitive device. electrostatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge without detection. although the ADE7754 features proprietary esd protection circuitry, permanent damage may occur on devices subjected to high-energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality. warning! esd sensitive device absolute maximum ratings* (t a = +25c unless otherwise noted) av dd to agnd . . . . . . . . . . . . . . . . . . . . . ?0.3v to +7v dv dd to dgnd . . . . . . . . . . . . . . . . . . . . ?0.3v to +7v dv dd to av dd . . . . . . . . . . . . . . . . . . . . . ?0.3v to +0.3v analog input voltage to agnd i ap ,i an ,i bp ,i bn ,i cp ,i cn ,v ap ,v bp ,v cp ,v n . ?6v to +6v reference input voltage to agnd ?0.3v to av dd +0.3v digital input voltage to dgnd . ?0.3v to dv dd +0.3v digital output voltage to dgnd ?0.3v to dv dd +0.3v operating temperature range industrial . . . . . . . . . . . . . . . . . . . . . . . ?40c to +85c storage temperature range . . . . . . . . ?65c to +150c junction temperature . . . . . . . . . . . . . . . . . . . . . . +150c 24-lead soic, power dissipation . . . . . . . . . tbd mw  ja thermal impedance . . . . . . . . . . . . . . . . . . . 53c/w lead temperature, soldering vapor phase (60 sec) . . . . . . . . . . . . . . . . . . . +215c infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . +220c *stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. terminology measurement error the error associated with the energy measurement made by the ADE7754 is defined by the following formula: percentage error energy registered by ade true energy true en   7754 e ergy
  100% phase error between channels the hpf (high pass filter) in the current channel has a phase lead response. to offset this phase response and equalize the phase response between channels a phase correc- tion network is also placed in the current channel. the phase correction network ensures a phase match between the current channels and voltage channels to within 0.1 over a range of 45hz to 65hz and 0.2 over a range 40hz to 1khz. this phase mismatch between the voltage and the current channels can be further reduced with the phase calibration register in each phase. power supply rejection this quantifies the ADE7754 measurement error as a per- centage of reading when the power supplies are varied. for the ac psr measurement a reading at nominal supplies (5v) is taken. a second reading is obtained with the same input signal levels when an ac (175mvrms/100hz) signal is introduced onto the supplies. any error introduced by this ac signal is expressed as a percentage of reading?see measure- ment error definition above. for the dc psr measurement a reading at nominal supplies (5v) is taken. a second reading is obtained with the same input signal levels when the power supplies are varied 5%. any error introduced is again expressed as a percentage of reading. adc offset error this refers to the dc offset associated with the analog inputs to the adcs. it means that with the analog inputs connected to agnd the adcs still see a dc analog input signal. the magnitude of the offset depends on the gain and input range selection - see characteristic curves. however, when hpfs are switched on the offset is removed from the current channels and the power calculation is not affected by this offset. gain error the gain error in the ADE7754 adcs, is defined as the difference between the measured adc output code (minus the offset) and the ideal output code - see current channel adc & voltage channel adc . the difference is expressed as a percentage of the ideal code. gain error match the gain error match is defined as the gain error (minus the offset) obtained when switching between a gain of 1, 2 or 4. it is expressed as a percentage of the output adc code obtained under a gain of 1.
rev. prg 01/03 preliminary technical data ? 5 ? ADE7754 tbd tpc 1. real power error as a percent of reading with gain = 1 and internal reference (wye connection) tbd tpc 3. real power error as a percent of reading over power factor with internal reference (gain = 1) tbd tpc 5. current rms error as a percent of reading with internal reference (gain = 1) tbd tpc 2. real power error as a percent of reading over power factor with internal reference (delta connection) tbd tpc 4. real power error as a percent of reading over power factor with internal reference (gain = 4) tbd tpc 6. voltage rms error as a percent of reading with internal reference (gain = 1) characteristic curves ?
rev. prg 01/03 preliminary technical data ADE7754 ? 6 ? tbd tpc 7. real power error as a percent of reading over power factor with external reference (gain = 1) tbd tpc 9. real power error as a percent of reading over input frequency with internal reference tbd tpc 11. real power error as a percent of reading over power supply with internal reference (gain = 1) tbd tpc 8. voltage rms error as a percent of reading with external reference (gain = 1) tbd tpc 10. real power error as a percent of reading over power supply with external reference (gain = 1) tbd tpc 12. test circuit for performances curves
rev. prg 01/03 preliminary technical data ADE7754 ? 7 ? tbd tpc 13. current channel offset distribution (gain = 1) tbd tpc 14. current channel offset distribution (gain = 4)
rev. prg 01/03 preliminary technical data ADE7754 ? 8 ? pin function description pin no. mnemonic description 1 c f calibration frequency logic output. the cf logic output gives active power informa- tion. this output is intended to be used for operational and calibration purposes. the full-scale output frequency can be scaled by writing to the cfnum and cfden reg- isters?see energy to frequency conversion. 2 dgnd this provides the ground reference for the digital circuitry in the ADE7754, i.e. multi- plier, filters and digital-to-frequency converter. because the digital return currents in the ADE7754 are small, it is acceptable to connect this pin to the analog ground plane of the whole system. however high bus capacitance on the dout pin may result in noisy digital current which could affect performance. 3 dv dd digital power supply. this pin provides the supply voltage for the digital circuitry in the ADE7754. the supply voltage should be maintained at 5v 5% for specified op- eration. this pin should be decoupled to dgnd with a 10f capacitor in parallel with a ceramic 100nf capacitor. 4av dd analog power supply. this pin provides the supply voltage for the analog circuitry in the ADE7754. the supply should be maintained at 5v 5% for specified operation. every effort should be made to minimize power supply ripple and noise at this pin by the use of proper decoupling. the typical performance graphs in this data sheet show the power supply rejection performance. this pin should be decoupled to agnd with a 10f capacitor in parallel with a ceramic 100nf capacitor. 5,6; i ap , i an ; analog inputs for current channel. this channel is intended for use with the current 7,8; i bp , i bn ; transducer and is referenced in this document as the current channel. these inputs are 9,10 i cp , i cn fully differential voltage inputs with maximum differential input signal levels of 0.5v, 0.25v and 0.125v, depending on the gain selections of the internal pga -see analog inputs . all inputs have internal esd protection circuitry, and in addition an overvoltage of 6v can be sustained on these inputs without risk of permanent damage. 11 agnd this pin provides the ground reference for the analog circuitry in the ADE7754, i.e. adcs, temperature sensor, and reference. this pin should be tied to the analog ground plane or the quietest ground reference in the system. this quiet ground reference should be used for all analog circuitry, e.g. anti aliasing filters, current and voltage transducers etc. in order to keep ground noise around the ADE7754 to a minimum, the quiet ground plane should only connected to the digital ground plane at one point. it is acceptable to place the entire device on the analog ground plane. 12 ref in/out this pin provides access to the on-chip voltage reference. the on-chip reference has a nominal value of 2.4v 8% and a typical temperature coefficient of 30ppm/c. an external reference source may also be connected at this pin. in either case this pin should be decoupled to agnd with a 1f ceramic capacitor. 13, 14 v n , v cp , analog inputs for the voltage channel. this channel is intended for use with the voltage 15, 16 v bp , v ap transducer and is referenced as the voltage channel in this document. these inputs are single-ended voltage inputs with maximum signal level of 0.5v with respect to v n for specified operation. these inputs are voltage inputs with maximum differential input signal levels of 0.5v, 0.25v and 0.125v, depending on the gain selections of the internal pga - see analog inputs . all inputs have internal esd protection circuitry, and in addition an over voltage of 6v can be sustained on these inputs without risk of permanent damage. 17  reset pin for the ADE7754. a logic low on this pin will hold the adcs and digital circuitry (including the serial interface) in a reset condition. 18  interrupt request output. this is an active low open drain logic output. maskable interrupts include: active energy register at half level, apparent energy register at half level, and waveform sampling up to 26ksps. see ADE7754 interrupts .
rev. prg 01/03 preliminary technical data ADE7754 ? 9 ? pin no. mnemonic description 19 clkin master clock for adcs and digital signal processing. an external clock can be pro- vided at this logic input. alternatively, a parallel resonant at crystal can be connected across clkin and clkout to provide a clock source for the ADE7754. the clock frequency for specified operation is 10mhz. ceramic load capacitors of between 22pf and 33pf should be used with the gate oscillator circuit. refer to crystal manufacturers data sheet for load capacitance requirements 20 clkout a crystal can be connected across this pin and clkin as described above to provide a clock source for the ADE7754. the clkout pin can drive one cmos load when either an external clock is supplied at clkin or a crystal is being used. 21  chip select. part of the four wire serial interface. this active low logic input allows the ADE7754 to share the serial bus with several other devices. see ADE7754 serial inter- face. . 22 d i n data input for the serial interface. data is shifted in at this pin on the falling edge of sclk?see ADE7754 serial interface . 23 sclk serial clock input for the synchronous serial interface. all serial data transfers are synchronized to this clock?see ADE7754 serial interface . the sclk has a schmidt-trig- ger input for use with a clock source which has a slow edge transition time, e.g., opto-isolator outputs etc. 24 dout data output for the serial interface. data is shifted out at this pin on the rising edge of sclk. this logic output is normally in a high impedance state unless it is driving data onto the serial data bus?see ADE7754 serial interface . pin configuration soic package top view (not to scale) ADE7754 ref in/out agnd icn icp ibn cf dgnd dvdd avdd ibp ian iap vn vcp vbp vap reset cs sclk din dout irq clkin clkout 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 24 23 22 21 20 19 18 17 16 15 14 13
rev. prg 01/03 preliminary technical data ADE7754 ? 10 ? power supply monitor the ADE7754 also contains an on-chip power supply moni- tor. the analog supply (av dd ) is continuously monitored by the ADE7754. if the supply is less than 4v 5% then the ADE7754 will go in an inactive state, i.e. no energy will be accumulated when the supply voltage is below 4v. this is useful to ensure correct device operation at power up and during power down. the power supply monitor has built-in hysteresis and filtering. this gives a high degree of immunity to false triggering due to noisy supplies. time av dd 0v 4v 5v ADE7754 power-on inactive active inactive reset flag in the interrupt status register read rstatus register figure 2 - on chip power supply monitoring the reset bit in the interrupt status register is set to logic one when avdd drops below 4v 5%. the reset flag is always masked by the interrupt mask register and cannot cause the  pin to go low. the power supply and decoupling for the part should be such that the ripple at avdd does not exceed 5v 5% as specified for normal operation. analog inputs the ADE7754 has a total of six analog inputs, dividable into two channels: current channel and voltage channel. the current channel consists of three pairs of fully-differential voltage inputs, namely (i ap , i an ; i bp , i bn ; i cp , i cn ). the fully differential voltage input pairs have a maximum differential voltage of 0.5v. the voltage channel has three single-ended voltage inputs v ap , v bp , and v cp . these single-ended volt- age inputs have a maximum input voltage of 0.5v with respect to v n . both the current channel and the voltage channel have a pga (programmable gain amplifier) with possible gain selections of 1, 2, or 4. the same gain is applied to all the inputs of each channel. the gain selections are made by writing to the gain register. bits 0 to 1 select the gain for the pga in the fully-differential current channel. the gain selection for the pga in the single- ended voltage channel is made via bits 5 to 6. figure 3 shows how a gain selection for the current channel is made using the gain register. iap, ibp, icp ian, ibn, icn v in kv in + - gain[7:0] gain (k) selection figure 3 ? pga in current channel figure 4 shows how the gain settings in pga 1 (current channel) and pga 2 (voltage channel) are selected by various bits in the gain register. the no load threshold and sum of the absolute value can also be selected in the gain register - see table x . gain register* current & voltage channel pga control addr: 18h 0 1 2 3 4 5 6 7 pga 2 gain select 00 = x1 01 = x2 10 = x4 00 0 0 0 0 0 0 *register contents show power on defaults pga 1 gain select 00 = x1 01 = x2 10 = x4 reserved =0 reserved=0 abs no load figure 4 ? ADE7754 analog gain register
rev. prg 01/03 preliminary technical data ADE7754 ? 11 ? ADE7754 analog to digital conversion the analog-to-digital conversion in the ADE7754 is carried out using second order sigma-delta adcs. the block dia- gram in figure 5 shows a first order (for simplicity) sigma-delta adc. the converter is made up of two parts, first the sigma-delta modulator and secondly the digital low pass filter. v ref + - ....10100101...... digital low pass filter   mclk/12 integrator 1-bit dac latched comparator + - r c analog low pass filter 1 24 figure 5 - first order sigma-delta (  ) adc a sigma-delta modulator converts the input signal into a continuous serial stream of 1's and 0's at a rate determined by the sampling clock. in the ADE7754 the sampling clock is equal to clkin/12. the 1-bit dac in the feedback loop is driven by the serial data stream. the dac output is sub- tracted from the input signal. if the loop gain is high enough the average value of the dac output (and therefore the bit stream) will approach that of the input signal level. for any given input value in a single sampling interval, the data from the 1-bit adc is virtually meaningless. only when a large number of samples are averaged, will a meaningful result be obtained. this averaging is carried out in the second part of the adc, the digital low pass filter. by averaging a large number of bits from the modulator the low pass filter can produce 24-bit data words which are proportional to the input signal level. the sigma-delta converter uses two techniques to achieve high resolution from what is essentially a 1-bit conversion technique. the first is oversampling. by over sampling we mean that the signal is sampled at a rate (frequency) which is many times higher than the bandwidth of interest. for example the sampling rate in the ADE7754 is clkin/12 (833khz) and the band of interest is 40hz to 2khz. oversampling has the effect of spreading the quanti- zation noise (noise due to sampling) over a wider bandwidth. with the noise spread more thinly over a wider bandwidth, the quantization noise in the band of interest is lowered?see figure 6 . however oversampling alone is not an efficient enough method to improve the signal to noise ratio (snr) in the band of interest. for example, an oversampling ratio of 4 is required just to increase the snr by only 6db (1-bit). to keep the oversampling ratio at a reasonable level, it is possible to shape the quantization noise so that the majority of the noise lies at the higher frequencies. this is what happens in the sigma-delta modulator, the noise is shaped by the integrator which has a high pass type response for the quantization noise. the result is that most of the noise is at the higher frequencies where it can be removed by the digital low pass filter. this noise shaping is also shown in figure 6. frequency (hz) 0 417khz 833khz 2khz sampling frequency shaped noise antialias filter (rc) digital filter noise signal fre q uenc y ( hz ) 0 417khz 833khz 2khz noise signal high resolution output from digital lpf figure 6 ? noise reduction due to oversampling & noise shaping in the analog modulator antialias filter figure 5 also shows an analog low pass filter (rc) on the input to the modulator. this filter is present to prevent aliasing. aliasing is an artifact of all sampled systems. basically it means that frequency components in the input signal to the adc which are higher than half the sampling rate of the adc will appear in the sampled signal at a frequency below half the sampling rate. figure 7 illustrates the effect, frequency components (arrows shown in black) above half the sampling frequency (also know as the nyquist frequency), i.e., 417khz get imaged or folded back down below 417khz (arrows shown in grey). this will happen with all adcs no matter what the architecture. in the example shown it can be seen that only frequencies near the sampling frequency, i.e., 833khz, will move into the band of interest for metering, i.e, 40hz - 2khz. this fact allows us to use a very simple lpf (low pass filter) to attenuate these high frequencies (near 900khz) and so prevent distortion in the band of interest. a simple rc filter (single pole) with a corner frequency of 10khz produces an attenuation of ap- proximately 40dbs at 833khz?see figure 7 . this is sufficient to eliminate the effects of aliasing. aliasing effects image frequencies 0 2khz 417khz 833khz sampling frequency frequency (hz) figure 7 ? adc and signal processing in current channel or voltage channel
rev. prg 01/03 preliminary technical data ADE7754 ? 12 ? current channel adc figure 8 shows the adc and signal processing chain for the input ia of the current channels (same for ib and ic). in waveform sampling mode the adc outputs are signed 2?s complement 24-bit data word at a maximum of 26.0ksps (kilo samples per second). the output of the adc can be scaled by 50% by using the apgains register. while the adc outputs are 24-bit 2's complement value the maximum full-scale positive value from the adc is limited to 400000h (+4,194,304d). the maximum full-scale negative value is limited to c00000h (-4,194,304d). if the analog inputs are over-ranged, the adc output code clamps at these values. with the specified full scale analog input signal of 0.5v, the adc produces an output code between d70a3eh (- 2,684,354) and 28f5c2h (+2,684,354). this is illustrated in figure 8. the diagram in figure 8 shows a full-scale voltage signal being applied to the differential inputs iap and ian. current channel adc gain adjust the adc gain in each phase of the current channel can be adjusted by using the multiplier and active power gain register (aapgain[11:0], bapgain and capgain). the gain of the adc is adjusted by writing a 2?s complement 12-bit word to the active power gain register. below is the expression that shows how the gain adjustment is related to the contents of the active power gain register. code adc aapgain        
  1 2 12 for example when 7ffh is written to the active power gain register the adc output is scaled up by 50%. 7ffh = 2047d, 2047/2 12 = 0.5. similarly, 800h = -2047 dec (signed 2?s complement) and adc output is scaled by ?50%. these two examples are illustrated graphically in figure 8. current channel sampling the waveform samples of the current channel inputs may also be routed to the waveform register (wavmode register to select the speed and the phase) to be read by the system master (mcu). the active energy and apparent energy calculation will remain uninterrupted during wave- form sampling. when in waveform sample mode, one of four output sample rates may be chosen by using bits 3 and 4 of the wavmode register (dtrt[1:0] mnemonic). the output sample rate may be 26.0ksps, 13.0ksps, 6.5ksps or 3.3ksps?see wavmode register . by setting the wsmp bit in the interrupt mask register to logic one, the interrupt request output  will go active low when a sample is available. the timing is shown in figure 9. the 24-bit waveform samples are trans- ferred from the ADE7754 one byte (8-bits) at a time, with the most significant byte shifted out first. 0 0 09 hex irq din dout sclk read from waveform current channel data - 24 bits sgn figure 9 C waveform sampling current channel ppppppppp ppppppmp see ADE7754 inter- rupt. note: if the wsmp bit in the interrupt mask register is not set to logic one, no data is available in the waveform register. hpf iap ian adc pga1 1 24 12 800hex - 7ffhex reference aapgain[11:0] vin vin 0v 000000h 400000h c00000h 28f5c2h d70a3eh + 100% fs - 100% fs 00000h 28f5c2h + 100% fs - 100% fs d70a3eh + 150% fs + 50% fs - 50% fs - 150% fs 3d70a3h 147ae1h eb851fh c28f5dh aapgain[11:0] 000h 7ffh 800h analog input range adc output word range channel 1 active and reactive power calculation waveform sample register 1 sinc 3 multiplier digital lpf x1, x2, x4 gain[1:0] 0.5 v / gain1 current rms calculation 100% fs figure 8 - adc and signal processing in current channel
rev. prg 01/03 preliminary technical data ADE7754 ? 13 ? voltage channel adc figure 10 shows the adc and signal processing chain for the input va in voltage channel (same for vb and vc). vap vn adc 1 x1, x2, x4 gain[6:5] va va 0v 0.5v gain analog input range to active & reactive energy calculation -100% to +100% fs lpf1 16 27e9h d817h lpf output word range to voltage rms and waveform sampling 60hz 60hz 2838h d7c8h 50hz figure 10 C adc and signal processing in voltage channel pp-ppppppep7p pppppppp&p pppppppppp ppp&pppppp ppppppppppp ppppppppp & ppp-pppppppp ppeppp-pppp p7&pppppp p-ppppppp p-pppppppppg& ppppppppp ppp&pppppppp pppppgpemg-7p pe6g-7ppppp& ppppppp&ppp ppppg-ppppppp ppppp4& hf hz hz dbs () . .      1 1 60 260 0 974 0 2 2 note lpf1 does not affect the power calculation since it is used only in the waveform sample mode. when in waveform sample mode, one of four output sample rates can be chosen by using bits 3 and 4 of the wavmode register. the available output sample rates are 26.0ksps, 13.5ksps, 6.5ksps or 3.3ksps. the interrupt request output  signals a new sample availability by going active low. the voltage waveform register is a 2-complement 16-bit register. as the waveform register is a 24-bit signed register, the waveform data from the voltage input is located in the 16 lsb of the waveform register. the sign of the 16-bit voltage input value is not extended to the upper byte of the waveform register. the upper byte is instead filled with zeros. 24-bit waveform samples are transferred from the ADE7754 one byte (8-bits) at a time, with the most significant byte shifted out first. the timing is the same as that for the current channels and is shown in figure 9. zero crossing detection the ADE7754 has rising edge zero crossing detection circuits for each of voltage channels (v ap , v bp , or v cp ). figure 12 shows how the zero cross signal is generated from the output of the adc of the voltage channel. v ap , v bp , v cp v n adc pga 1 x1, x2, x4 reference gain[6:5] v to multiplier -100% to +100% fs v irq 13 degrees @ 60hz 0.95 1.0 zero cross zero crossing detection read rstatus lpf1 f -3db = 260hz figure 12 ? zero cross detection on voltage channel the zero crossing interrupt is generated from the output of lpf1. lpf1 has a single pole at 260hz (clkin = 10mhz). as a result there will be a phase lag between the analog input signal of the voltage channel and the output of lpf1. the phase response of this filter is shown in the voltage channel sampling section of this data sheet. the phase lag response of lpf1 results in a time delay of approximately 0.6ms (@ 60hz) between the zero crossing on the analog inputs of voltage channel and the falling of irq. when one phase crosses zero from negative to positive values (rising edge), the corresponding flag in the interrupt status register (bit 7-9) is set to logic one. an active-low in the  output will also appear if the corresponding zx bit in the interrupt mask register is set to logic one. the flag in the interrupt status register is reset to 0 when the interrupt status register with reset (rstatus) is read. each phase has its own interrupt flag and mask bit in the interrupt register. 10 1 10 2 10 3 ?60 ?40 ?20 0 phase () gain (dbs) frequency (hz) 10 1 10 2 10 3 ? 40 ? 20 0 (60hz ; ? 13 ) (60hz ; ? 0.2db) figure 11 ? magnitude & phase response of lpf1
rev. prg 01/03 preliminary technical data ADE7754 ? 14 ? in addition to the mask bits, the zero crossing detection interrupt of each phase is enabled/disabled by setting the zxsel bits of the mmode register (addr. 0x0b) to logic one or zero respectively. zero crossing time out each zero crossing detection has an associated internal time- out register (not accessible to the user). this unsigned, 16-bit register is decremented (1 lsb) every 384/clkin seconds. the registers are reset to a common user pro- grammed value -i.e. zero cross time out register (zxtout, addr. 0x12) every time a zero crossing is detected on its associated input. the default value of zxtout is ffffh. if the internal register decrements to zero before a zero crossing at the corresponding input is detected, it indicates an absence of a zero crossing in the time determined by the zxtout. the zxto detection bit of the corre- sponding phase in the interrupt status register is then switched on (bit 4-6). an active-low on the  output will also appear if the sag mask bit for the corresponding phase in the interrupt mask register is set to logic one. in addition to the mask bits, the zero crossing time out detection interrupt of each phase is enabled/disabled by setting the zxsel bits of the mmode register (addr. 0x0b) to logic one or zero respectively. when the zero crossing time out detection is disabled by this method, the zxto flag of the corresponding phase is switched on all the time. figure 13 shows the mechanism of the zero crossing time out detection when the line voltage a stays at a fixed dc level for more than clkin/384 x zxtout seconds. voltage channel a zxtoa detection bit zxtout 16-bit internal register value figure 13 - zero crossing time out detection period measurement the ADE7754 provides also the period measurement of the line voltage. the period is measured on the phase specified by bit 0-1 of the mmode register. the period register is an unsigned 15-bit register and is updated every period of the selected phase. bit 0-1 and bit 4-6 of the mmode register select the phase for the period measurement, both selection should indicate the same phase. the zxsel bits of the mmode register (bit 4-6) enable the phases on which the period measurement can be done. the perdsel bits select the phase for period measurement within the phases selected by the zxsel bits. the resolution of this register is 2.4  s/lsb when clkin=10mhz, which represents 0.014% when the line frequency is 60hz. when the line frequency is 60hz, the value of the period register is approximately 6944d. the length of the register enables the measurement of line frequencies as low as 12.7hz. line voltage sag detection the ADE7754 can be programmed to detect when the absolute value of the line voltage of any phase drops below a certain peak value, for a number of half cycles. each phase of the voltage channel is controlled simultaneously. this con- dition is illustrated in figure 14 below. sagcyc[7:0] = 06h 6 half cycles saglvl[7:0] full scale v ap , v bp , or v cp sag interrupt flag (bit 1 to 3 of status register) sag event reset low when voltage channel exceeds saglvl[7:0] read rstatus register figure 14 ? ADE7754 sag detection figure 14 shows a line voltage falling below a threshold which is set in the sag level register (saglvl[7:0]) for nine half cycles. since the sag cycle register indicates a 6 half-cycle threshold (sagcyc[7:0]=06h), the  event is recorded at the end of the sixth half-cycle by setting the sag flag of the corresponding phase in the interrupt status register (bit 1 to 3 in the interrupt status register). if the sag enable bit is set to logic one for this phase (bit 1 to 3 in the interrupt mask register), the  logic output will go active low - see ADE7754 interrupts . all the phases are compared to the same parameters defined in the saglvl and sagcyc registers. sag level set the content of the sag level register (1 byte) is compared to the absolute value of the most significant byte output from the voltage channel adc. thus, for example, the nominal maximum code from the voltage channel adc with a full scale signal is 28f5h ?see voltage channel sampling . therefore, writing 28h to the sag level register will put the sag detection level at full scale and set the sag detection to its most sensitive value. writing 00h will put the sag detection level at zero. the detection of a decrease of an input voltage is in this case hardly possible. the detection is made when the content of the saglvl register is greater than the incoming sample.
rev. prg 01/03 preliminary technical data ADE7754 ? 15 ? peak detection the ADE7754 can also be programmed to detect when the absolute value of the voltage or the current channel of one phase exceeds a certain peak value. figure 15 illustrates the behavior of the peak detection for the voltage channel. vpeak[7:0] v ap , v bp , or v cp pkv interrupt flag (bit c of status register) pkv reset low when rstatus register is read read rstatus re g ister figure 15 - ADE7754 peak detection bits 2-3 of the measurement mode register define the phase supporting the peak detection. both current and voltage of this phase can be monitored at the same time. figure 15 shows a line voltage exceeding a threshold which is set in the voltage peak register (vpeak[7:0]). the voltage peak event is recorded by setting the pkv flag in the interrupt status register. if the pkv enable bit is set to logic one in the interrupt mask register, the  logic output will go active low - see ADE7754 interrupts . peak level set the contents of the vpeak and ipeak registers are respec- tively compared to the absolute value of the most significant byte output of the selected voltage and current channels. thus, for example, the nominal maximum code from the current channel adc with a full scale signal is 28f5c2h ? see current channel sampling . therefore, writing 28h to the ipeak register will put the current channel peak detection level at full scale and set the current peak detection to its least sensitive value. writing 00h will put the current channel detection level at zero. the detection is done when the content of the ipeak register is smaller than the incoming current channel sample. temperature measurement the ADE7754 also includes an on-chip temperature sensor. a temperature measurement is made every 4/clkin sec- onds. the output from the temperature sensing circuit is connected to an adc for digitizing. the resultant code is processed and placed in the temperature register (temp[7:0]). this register can be read by the user and has an address of 08h -see ADE7754 serial interface section . the contents of the temperature register are signed (2's complement) with a resolution of 4c/lsb. the tempera- ture register will produce a code of 00h when the ambient temperature is approximately 129c. the value of the register will be : temperature register = (temperature (c) - 129)/4. the temperature in the ADE7754 has an offset tolerance of approximately 5c. the error can be easily calibrated out by an mcu.
rev. prg 01/03 preliminary technical data ADE7754 ? 16 ? phase compensation when the hpfs are disabled the phase error between the current channel (ia, ib and ic) and the voltage channel (va, vb and vc) is zero from dc to 3.3khz. when the hpfs are enabled, the current channels have a phase response illus- trated in figure 16a & 16b. also shown in figure 16c is the magnitude response of the filter. as can be seen from the plots, the phase response is almost zero from 45hz to 1khz, this is all that is required in typical energy measurement applications. -0.01 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0 100 200 300 400 500 600 700 800 900 1000 frequency (hz) phase (degree) figure 16a ? phase response of the hpf & phase compensation (10hz to 1khz) -0.004 -0.002 0 0.002 0.004 0.006 0.008 0.01 40 45 50 55 60 65 70 frequency (hz) phase (degree) figure 16b - phase response of the hpf & phase compensation (40hz to 70hz) -0.004 -0.002 0 0.002 0.004 0.006 0.008 0.01 44 46 48 50 52 54 56 frequency (hz) phase (degree) figure 16c ? gain response of hpf & phase compensation (deviation of gain as % of gain at 54hz) however despite being internally phase compensated, the ADE7754 must work with transducers which may have inherent phase errors. for example a phase error of 0.1 to 0.3 is not uncommon for a ct (current transformer). these phase errors can vary from part to part and they must be corrected in order to perform accurate power calculations. the errors associated with phase mismatch are particularly noticeable at low power factors. the ADE7754 provides a means of digitally calibrating these small phase errors. the ADE7754 allows a small time delay or time advance to be introduced into the signal processing chain in order to compensate for small phase errors. because the compensa- tion is in time, this technique should only be used for small phase errors in the range of 0.1 to 0.5. correcting large phase errors using a time shift technique can introduce significant phase errors at higher harmonics. the phase calibration registers (aphcal, bphcal and cphcal) are 2?s complement 5-bit signed registers which can vary the time delay in the voltage channel signal path from ?19.2s to +19.2s (clkin = 10mhz). one lsb is equivalent to 1.2s. with a line frequency of 50hz this gives a phase resolution of 0.022 at the fundamental (i.e., 360 x 1.2s x 50hz). figure 17 illustrates how the phase compensation is used to remove a 0.091 phase lead in ia of the current channel due to some external transducer. in order to cancel the lead (0.091) in ia of the current channel, a phase lead must also be introduced into va of the voltage channel. the resolution of the phase adjustment allows the introduction of a phase lead of 0.086. the phase lead is achieved by introducing a time advance into va. a time advance of 4.8s is made by writing -4 (1ch) to the time delay block (aphcal[4:0]), thus reducing the amount of time delay by 4.8s - see calibration of a 3-phase meter based on the ADE7754 . vap vn adc pga2 1 va 24 lpf2 hpf iap ian adc pga1 ia 24 0 7 aphcal[4:0] phase calibration -19.2s to +19.2s 0.69  @ 50hz, 0.022  0.83  @ 60hz, 0.024  v1 v2 0.1  50hz ia va 50hz 00011 0 10 va delayed by 4.8s (-0.086  @ 50hz) 1ch figure 17 ? phase calibration
rev. prg 01/03 preliminary technical data ADE7754 ? 17 ? root mean square measurement root mean square (rms) is a fundamental measurement of the magnitude of an ac signal. its definition can be both practical and mathematical. defined practically, the rms value assigned to an ac signal is the amount of dc required to produce an equivalent amount of heat in the same load. mathematically: the rms value of a continuous signal f(t) is defined as: f t ftdt rms t    1 2 0 (1) ppp-pppp p-pppppppp f n fi rms i n    1 2 1 () (2) pppppppppp ppmppppppppe7p pppppp& p vt v t rms ( ) sin   2  then vt vt v v t rms rms () () cos   22 2  the rms calculation is simultaneously processed on the six analog input channels. each result is available on separate registers. current rms calculation figure 18 shows the detail of the signal processing chain for the rms calculation on one of the phases of the current channel. the current channel rms value is processed from the samples used in the current channel waveform sampling mode. it should be noticed that the apgain adjustment affects the result of the rms calculation - see current rms gain adjust. the current rms values are stored in an unsigned 24-bit registers (airms, birms and cirms). one lsb of the current rms register is equivalent to one lsb of a current waveform sample. the update rate of the current rms measurement is clkin/12. with the specified full scale analog input signal of 0.5v, the adc will produce an output code which is approximately 2,684,354d - see current channel adc . the equivalent rms values of a full-scale ac signal and full scale dc signal are respectively 1,898,124d (1cf68ch) and 2,684,354d (28f5c2h). with offset calibration, the current rms measurement pro- vided in the ADE7754 is accurate within +/-2% for signal input between full scale and full scale/100. note: a crosstalk between phases can appear in the ADE7754 current rms measurements. this crosstalk follows a specific pattern: current rms measurements of phase a are corrupted by the signal on the phase c current input, current rms measurements of phase b are corrupted by the signal on the phase a current input and current rms measurements of phase c are corrupted by the signal on the phase b current input. this crosstalk is only present on the current rms measurements and does not affect the regular active power measurements. the level of the crosstalk is dependent on the level of the noise source and the phase angle between the noise source and the corrupted signal. the level of the crosstalk can be reduced by writing 0x01f7 to the address 0x3d. this 16- bit register is reserved for factory operation and should not be written to any other value. when the current inputs are 120 out of phase and the register 0x3d is set to 0x01f7, the level of the current rms crosstalk is below 2%. 24 lpf3 fs current signal - i(t) -100% to +100% fs i rms (t) 1cf68ch 00h irms ia s + sgn 2 11 2 10 2 9 2 2 2 1 2 0 irmsos[11:0] 24 aapgain hpf 00000h 400000h c00000h 28f5c2h d70a3eh + fs - fs adc output word range 0000h 1cf68ch + 100% fs - 100% fs e30974h + 122.5% fs + 70.7% fs - 70.7% fs - 122.5% fs 2378edh 147ae0h eb8520h dc8713h aapgain[11:0] 000h 7ffh 800h current channel (rms) figure 18 - current rms signal processing
rev. prg 01/03 preliminary technical data ADE7754 ? 18 ? current rms gain adjust the active power gain registers (aapgain[11:0], bapgain and capgain) have an effect on the active power and current rms values. it is not recommended to calibrate the current rms measurements with these registers. the conversion of the current rms registers values to am- peres has to be done in an external micro-controller with a specific ampere/lsb constant for each phase - see calibration of a 3-phase meter based on the ADE7754 . due to gain mismatches between phases, the calibration of the ampere/ lsb constant has to be done for each phase separately. one point calibration is sufficient for this calibration. the active power gain registers are aimed to ease the calibration of the active energy calculation in mode 1 and 2 of the vamode register. if the apgain registers are used for active power calibra- tion (watmod bits in wattmode register = 1 or 2), the current rms values are changed by active power gain register value as described in the expression below: current rms phase a rms aapgain register  
  1 2 12 for example, when 7ffh is written to the active power gain register, the adc output is scaled up by 22.5%. similarly, 800h = -2047d (signed 2?s complement) and adc output is scaled by 29.3%. these two examples are illustrated graphi- cally in figure 18. current rms offset compensation the ADE7754 incorporates a current rms offset compen- sation for each phase (airmsos, birmsos and cirmsos). these are 12-bit 2-complement signed regis- ters which can be used to remove offsets in the current rms calculations. an offset may exist in the rms calculation due to input noises that are integrated in the dc component of v 2 (t). the offset calibration will allow the contents of the irms registers to be maintained at zero when no current is being consumed. n lsb of the current rms offset are equivalent to 32768 x n lsb of the square of the current rms register. assuming that the maximum value from the current rms calculation is 1,898,124d with full scale ac inputs, then 1 lsb of the current rms offset represents 0.0058% of measurement error at -40db down of full scale. i i irmsos rms rms  0 2 32768 where i rmso is the rms measurement without offset correc- tion. the current rms offset compensation should be done by testing the rms results at two non-zero input levels. one measurement can be done close to full scale and the other at approximately full scale/100. the current offset compensa- tion can then be derived from these measurements - see calibration of a 3-phase meter based on the ADE7754 . voltage rms calculation figure 19 shows the details of the signal processing chain for the rms calculation on one of the phases of the voltage channel. the voltage channel rms value is processed from the samples used in the voltage channel waveform sampling mode. the output of the voltage channel adc can be scaled by 50% by changing vgain registers to perform an overall apparent power calibration -see apparent power calculation. the vgain adjustment affects the rms calculation as it is done before the rms signal processing. the voltage rms values are stored in unsigned 24-bit registers (avrms, bvrms and cvrms). 256 lsb of the voltage rms register is approximately equivalent to one lsb of a voltage wave- form sample. the update rate of the voltage rms measurement is clkin/12. with the specified full scale ac analog input signal of 0.5v, the lpf1 produces an output code which is approximately 10,217d at 60 hz- see voltage channel adc . the equivalent rms value of a full-scale ac signal is approximately 7,221d (1c35h), which gives a voltage rms value of 1,848,772 (1c35c4h) in the vrms register. with offset calibration, the voltage rms measurement pro- vided in the ADE7754 is accurate within +/-0.5% for signal input between full scale and full scale/20. lpf3 voltage signal - v(t) v a lpf1 s + sgn 2 11 2 8 2 2 2 1 2 0 vrmsos[11:0] + 800hex - 7ffhex 12 0.5/gain2 fs voltage signal - v(t) 00000h 4000h c000h 28f5h d70ah + fs - fs adc output word range 0000h 1c35c4h + 100% fs - 100% fs e3ca3ch + 150% fs + 50% fs - 50% fs - 150% fs 2a50a6h e1ae2h f1e51eh d5af5ah avgain[11:0] 000h 7ffh 800h voltage channel (rms) avgain[11:0] 24 figure 19 - voltage rms signal processing
rev. prg 01/03 preliminary technical data ADE7754 ? 19 ? active power calculation electrical power is defined as the rate of energy flow from source to load. it is given by the product of the voltage and current waveforms. the resulting waveform is called the instantaneous power signal and it is equal to the rate of energy flow at every instant of time. the unit of power is the watt or joules/sec. equation 5 gives an expression for the instanta- neous power signal in an ac system. v(t) t = 2v sin( )  (3) i(t) t = 2i sin( )  (4) where v = rms voltage, i = rms current. p (t) v(t) i(t) = p (t) 2 t = vi - vi cos( )  (5) the average power over an integral number of line cycles (n) is given by the expression in equation 6. p = 1 nt p(t)dt=vi 0 nt  (6) where t is the line cycle period. p is referred to as the active or real power. note that the active power is equal to the dc component of the instanta- neous power signal p(t) in equation 5 , i.e., vi. this is the relationship used to calculate active power in the ADE7754 for each phase. the instantaneous power signal p(t) is generated by multiplying the current and voltage signals in each phase. the dc component of the instantaneous power signal in each phase (a, b and c) is then extracted by lpf2 (low pass filter) to obtain the active power information on each phase. this process is illustrated graphically on figure 20. in a polyphase system, the total electrical power is simply the sum of the real power in all active phases. the different solutions available to process the total active power are discussed in the following paragraph. voltage current instantaneous power signal active real power signal = v x i v. i. 00000h 1a36e2eh d1b717h ) sin( 2 t i i(t)   ) sin( 2 t v v(t)   ) 2 cos( t i v i v p(t)    figure 20 C active power calculation voltage rms gain adjust the voltage gain register (avgain[11:0], bvgain and cvgain) have an effect on the apparent power and voltage rms values. it is not recommended to calibrate the voltage rms measurements with these registers. the conversion of the voltage rms registers values to volts has to be done in an external micro-controller with a specific volt/lsb constant for each phase - see calibration of a 3-phase meter based on the ADE7754 . due to gain mismatches between phases, the calibration of the volt/lsb constant has to be done for each phase separately. one point calibration is sufficient for this calibration. the voltage gain registers are aimed to ease the calibration of the apparent energy calculation in mode 1 and 2 of the vamode register. if the vgain registers are used for apparent power calibra- tion (vamod bits in vamode register = 1 or 2), the voltage rms values are changed by voltage gain register value as described in the expression below: voltage rms gister phase a rms avgain re        
  1 2 12 for example, when 7ffh is written to the voltage gain register, the adc output is scaled up by +50%. 7ffh = 2047d, 2047/2 12 = 0.5. similarly, 800h = -2047 dec (signed 2?s complement) and adc output is scaled by ?50%. these two examples are illustrated graphically in figure 19. voltage rms offset compensation the ADE7754 incorporates a voltage rms offset compen- sation for each phase (avrmsos, bvrmsos and cvrmsos). these are 12-bit 2-complement signed regis- ters which can be used to remove offsets in the voltage rms calculations. an offset may exist in the rms calculation due to input noises and offsets in the input samples. the offset calibration allows the contents of the vrms registers to be maintained at zero when no voltage is applied. n lsb of the voltage rms offset are equivalent to 64 x n lsb of the voltage rms register. assuming that the maximum value from the voltage rms calculation is 1,898,124d with full scale ac inputs, then 1 lsb of the voltage rms offset represents 0.07% of measurement error at -26db down of full scale. v v vrmsos rms rms  0 64 where v rmso is the rms measurement without offset correc- tion. the voltage rms offset compensation should be done by testing the rms results at two non-zero input levels. one measurement can be done close to full scale and the other at approximately full scale/10. the voltage offset compensa- tion can then be derived from these measurements - see calibration of a 3-phase meter based on the ADE7754 .
rev. prg 01/03 preliminary technical data ADE7754 ? 20 ? since lpf2 does not have an ideal ?brick wall? frequency response?see figure 21, the active power signal will have some ripple due to the instantaneous power signal. this ripple is sinusoidal and has a frequency equal to twice the line frequency. since the ripple is sinusoidal in nature, it is removed when the active power signal is integrated to calculate the energy ? see energy calculation . frequency 1.0hz 3.0hz 10hz 30hz -24 -20 -16 -12 -8 -4 0 dbs 8hz figure 21 ? frequency response of the lpf used to filter instantaneous power in each phase figure 22 shows the signal processing in each phase for the active power in the ADE7754. figure 23 shows the maximum code (hexadecimal) output range of the active power signal (after awg). note that the output range changes depending on the contents of the active power gain and watt gain registers ? see current channel adc . the minimum output range is given when the active power gain and watt gain registers contents are equal to 800h and the maximum range is given by writing 7ffh to the active power gain and watt gain registers. these can be used to calibrate the active power (or energy) calculation in the ADE7754 for each phase and also the total active energy -see total active power calculation . 0000000h d1b717h + 100% f5 - 100% fs 2e48e9h + 150% fs + 50% fs - 50% fs - 150% fs 13a92a4h 68db8ch 972474h ec56d5ch aapgain[11:0] or awgain[11:0] 000h 7ffh 800h active power current channel 0.5v / gain1 voltage channel 0.5v / gain2 figure 23 C active power calculation output range pp pppppppp ppe-ppp7&pp pppmpppppp pppppp&ppp ppppppppp pppppppp&ppp ppppppppp pppppppp& ppppppppppp pppmpppppp&p ppppppppp-p pppppppppm see total active power calculation . assuming the average value from lpf2 is 8637bch (8,796,092d) with full ac scale inputs on current channel and voltage channel, then 1 lsb in the lpf2 output is equivalent to 0.011% of measurement error at - 60db down of full scale - see calibration of a 3-phase meter based on the ADE7754 . 1 -100% to + 100% fs hpf 24 lpf2 -100% to +100% fs current signal - i(t) voltage signal - v(t) instantaneous power signal - p(t) multiplier active power signal - p i v 28f5h d70bh 28f5c2h d70a3eh 00h 00h s + 2 4 2 3 2 2 2 1 apos[11:0] sgn 2 0 awg 12 28 d1b717h sgn sgn sgn sgn 2 10 1v / gain1 1v / gain2 figure 22 ? active power signal processing
rev. prg 01/03 preliminary technical data ADE7754 ? 21 ? reverse power information the ADE7754 detects when the current and voltage channels of any of the three phase inputs have a phase difference greater than 90 i.e.  a | or  b | or  c | > 90. this mechanism can detect wrong connection of the meter or generation of active energy. the reverse power information is available for phase a - b and c respectively by reading bit12-14 of the cfnum register - see table xi. the state of these bits represent the sign of the active power of the corresponding phase. logic one corresponds to negative active power. the aenergy phase selection bits (watsel bits of the watmode register) enable the negative power detection per phase. if phase a is enabled in the aenergy accumulation -bit 5 of watmode register sets to logic one- the negative power detection for phase a -bit 12 of cfnum register- indicates the direction of the active energy. if phase a is disabled in the aenergy register, the negative power bit for phase a is set to logic zero. total active power calculation the sum of the active powers coming from each phase gives the total active power consumption. different combinations of the three phases can be selected in the sum by setting bits 7-6 of the watmode register (mnemonic watmod[1:0]). figure 24 demonstrates the calculation of the total active power. the total active power calculated by the ADE7754 depends on the configuration of the watmod bits in the watmode register. each term of the formula can be disabled or enabled by setting watsel bits respectively to logic 0 or logic 1 in the watmode register. the different configurations are described in table i. watmod watsel0 watsel1 watsel2 0d v a x i a * + v b x i b * + v c x i c * 1d v a x (i a * -i b * )+ 0 + v c x (i c * -i b * ) 2d v a x (i a * -i b * )+ 0 + v c x i c * table i - total active power calculation note: i a * , i b * and i c * represent the current channels samples after apgain correction and high-pass filtering. for example, for watmod = 1, when all the gains and offsets corrections are taken into consideration, the exact formula that is used to process the active power is: total active power v aapgain i bapgain aa  
  
1 2 1 2 12 12    
  
  
  
i aapos awg v capgain b c 1 2 1 2 12 12   
  
  
  
i bapgain icapos cwg cb 1 2 1 2 12 12   depending on the polyphase meter service, the appropriate formula should be chosen to calculate the active power. the american ansi c12.10 standard defines the different con- figurations of the meter. table ii describes which mode should be chosen in these different configurations. ansi meter form watmod watsel 5s/13s 3-wire delta 0 3 or 5 or 6 6s/14s 4 -wire wye 1 5 8s/15s 4-wire delta 2 5 9s/16s 4 -wire wye 0 7 table ii - meter form configuration different gain calibration parameters are offered in the ADE7754 to cover the calibration of the meter in different configurations. it should be noticed that in mode 0, apgain and wgain registers have the same effect on the end result. in this case, apgain registers should be set at their default value and the gain adjustment should be done with the wgain registers. i a v a phase a* 1 28 lpf2 hpf bapgain bwgain i b * total instantaneous power signal active power signal - p 2752545h i b v b phase b* 1 hpf 28 lpf2 capgain cwgain s + - 0 i b * i c v c phase c* 1 hpf 28 lpf2 aapgain awgain s + - 0 i b * s + aapos s + bapos s + capos figure 24 Ctotal active power consumption calculation
rev. prg 01/03 preliminary technical data ADE7754 ? 22 ? energy calculation as stated earlier, power is defined as the rate of energy flow. this relationship can be expressed mathematically as equation 7. p= de dt (7) where p = power and e = energy. conversely energy is given as the integral of power. e= pdt  (8) the ADE7754 achieves the integration of the active power signal by continuously accumulating the active power signal in an internal non-readable 54-bit energy register. the active energy register (aenergy[23:0]) represents the upper 24 bits of this internal register. this discrete time accumulation or summation is equivalent to integration in continuous time. equation 9 below expresses the relationship e= dt lim p(t) t0 n0            pnt t () (9) where n is the discrete time sample number and t is the sample period. the discrete time sample period (t) for the accumulation register in the ADE7754 is 0.4s (4/10mhz). as well as calculating the energy, this integration removes any sinusoi- dal component which may be in the active power signal. figure 26 shows a graphical representation of this discrete time integration or accumulation. the active power signal is continuously added to the internal energy register. this addition is a signed addition, therefore negative energy will be subtracted from the active energy contents. 53 0 + +  total active power 00000h 26667h time (nt) t total active power are accumulated (integrated) in the active energy register active power signal - p t 53 0 aenergy[23:0] wdiv 23 0 figure 25 CADE7754 active energy calculation the 54-bit of the internal energy register are divided by wdiv. if the value in the wdiv register is equal to 0 then the internal active energy register is divided by 1. wdiv is an 8-bit unsigned register. the upper 24-bit of the result of the division are then available in the 24-bit active energy register. the aenergy and raenergy registers read the same internal active energy register. they differ by the the state in which they are leaving the internal active energy register after a read. two operations are held when reading the raenergy register: read and reset to zero the internal active energy register. only one operation is held when reading the aenergy register: read the internal active energy register. figure 26 shows the energy accumulation for full scale signals (sinusoidal) on the analog inputs. the three displayed curves, illustrate the minimum time it takes the energy register to roll-over, when the individual watt gain registers contents are all equal to 3ffh, 000h and 800h. the watt gain registers are used to carry out a power calibration in the ADE7754. as shown, the fastest integration time occurs when the watt gain registers are set to maximum full scale, i.e., 3ffh. 00,0000h 7f,ffffh 80,0000h 3f,ffffh 40,0000h aenergy[23:0] time (seconds) awg = bwg = cwg = 3ffh 88 176 264 44 132 220 awg = bwg = cwg = 000h awg = bwg = cwg = 800h figure 26 Cenergy register roll-over time for full-scale power (minimum & maximum power gain) note that the active energy register contents roll over to full- scale negative (80,0000h) and continue increasing in value when the power or energy flow is positive -see figure 26. conversely if the power is negative the energy register would under flow to full scale positive (7f,ffffh) and continue decreasing in value. by using the interrupt enable register, the ADE7754 can be configured to issue an interrupt (  ) when the active energy register is half full (positive or negative).
rev. prg 01/03 preliminary technical data ADE7754 ? 23 ? integration times under steady load as mentioned in the last section, the discrete time sample period (t) for the accumulation register is 0.4s (4/clkin). with full-scale sinusoidal signals on the analog inputs and the watt gain registers set to 000h, the average word value from each lpf2 is d1b717h - see figures 20 and 22 . the maximum value which can be stored in the active energy register before it over flows is 2 23 -1 or 7f,ffffh. as the average word value is added to the internal register, which can store 2 53 - 1 or 1f,ffff,ffff,ffffh before it overflows, the integration time under these conditions with wdiv=0 is calculated as follows: time f ffff ffff ffffh db h ss   1 3 1 717 04 88 ,,, .  when wdiv is set to a value different from 0, the integration time varies as shown on equation 10. time = time wdiv=0 x wdiv (10) the wdiv register can be used to increase the time before the active energy register overflows, therefore reducing the communication needs with the ADE7754. energy to frequency conversion the ADE7754 also provides energy to frequency conversion for calibration purposes. after initial calibration at manufac- ture, the manufacturer or end customer will often verify the energy meter calibration. one convenient way to verify the meter calibration is for the manufacturer to provide an output frequency which is proportional to the energy or active power under steady load conditions. this output frequency can provide a simple, single wire, optically isolated interface to external calibration equipment. figure 27 illustrates the energy to frequency conversion in the ADE7754.  + + cf 0 11 cfnum[11:0] active power phase a active power phase b active power phase c 0 11 cfden[11:0] dfc 0 53 total active power figure 27 ? ADE7754 energy to frequency conversion a digital to frequency converter (dfc) is used to generate the cf pulsed output. the dfc generates a pulse each time one lsb in the active energy register is accumulated. an output pulse is generated when cfden/cfnum pulses are generated at the dfc output. under steady load conditions the output frequency is proportional to the active power. the maximum output frequency (cfnum=00h & cfden=00h) with full scale ac signals on the three phases i.e. current channel and voltage channel is approximately 96khz. the ADE7754 incorporates two registers to set the frequency of cf (cfnum[11:0] and cfden[11:0]). these are unsigned 12-bit registers which can be used to adjust the frequency of cf to a wide range of values. these frequency scaling registers are 12-bit registers which can scale the output frequency by 1/2 12 to 1 with a step of 1/2 12 . if the value zero is written to any of these registers, the value one would be applied to the register. the ratio cfnum/ cfden should be smaller than one to assure proper opera- tion. if the ratio of the registers cfnum/cfden is greater than one, the cf frequency can no longer be guaranteed to be a consistent value. for example if the output frequency is 18.744khz while the contents of cfden are zero (000h), then the output frequency can be set to 6.103hz by writing bffh to the cfden register. the output frequency will have a slight ripple at a frequency equal to twice the line frequency. this is due to imperfect filtering of the instantaneous power signal to generate the active power signal ? see active power calculation . equation 5 gives an expression for the instantaneous power signal. this is filtered by lpf2 which has a magnitude response given by equation 11. hf f ()   1 1 8 2 2 (11) the active power signal (output of the lpf2) can be rewritten as. pt vi vi f ft l l () cos  
    ! !  ! !   ! !  ! !   1 2 8 4 2 " (12) where f l is the line frequency (e.g., 60hz) from equation 8 et vit vi f f ft l l l ( ) sin  
    ! !  ! !   ! !  ! !   41 2 8 4 2 " " (13) from equation 13 it can be seen that there is a small ripple in the energy calculation due to a sin(2  t) component. this is shown graphically in figure 28. the ripple will get larger as a percentage of the frequency at larger loads and higher output frequencies. choosing a lower output frequency at cf for calibration can significantly reduce the ripple. also averaging the output frequency by using a longer gate time for the counter will achieve the same results. t e(t) vit   t f f f vi l l l " " 4 sin 8 2 1 4 2  ! !  ! !   ! !  ! !    
  figure 28 ? output frequency ripple
rev. prg 01/03 preliminary technical data ADE7754 ? 24 ? no load threshold the ADE7754 includes a selectable ? no load threshold ? or ? start up current ? feature that will eliminate any creep effects in the active energy measurement of the meter. when enabled, this function is independently applied on each phase ? s active power calculation. this mode is selected by default and can be disabled by setting to logic one bit3 of the gain register (address 18h) - see table x. any load generating an active power amplitude lower than the mini- mum amplitude specified, will not be taken into account when accumulating the active power from this phase. the minimum instantaneous active power allowed in this mode is 0.005% of the full scale amplitude. as the maximum active power value is 13,743,895d with full scale analog input, the no-load threshold is 687d. for example, an energy meter with maximum inputs of 220v and 40a and ib=10a, the maximum instantaneous active power is 3,435,974d assuming that both inputs represent half of the analog input full scale . as the no-load threshold represents 687d, the start up current represents 8ma or 0.08% of ib. mode selection of the sum of the three active energies the ADE7754 can be configured to execute the arithmetic sum of the three active energies, wh = wh # a + wh #$ + wh # c , or the sum of the absolute value of these energies, wh = |wh # a | + | wh #$  + |wh # c | . the selection between the two modes can be made by setting bit2 of the gain register (address 18h) - see table x. logic high and logic low of this bit correspond respectively to the sum of absolute values and the arithmetic sum. this selection affects the active energy accumulation in the aenergy, raenergy, laenergy registers as well as for the cf frequency output. when the sum of the absolute values is selected, the active energy from each phase is always counted positive in the total active energy. it is particularly useful in 3-phase 4-wire installation where the sign of the active power should always be the same. if the meter is misconnected to the power lines i.e. ct connected in the wrong direction, the total active energy recorded without this solution can be reduced by two third. the sum of the absolute values assures that the active energy recorded represents the actual active energy delivered. in this mode, the reverse power information available in the cfnum register is still detecting when negative active power is present on any of the three phase inputs. line energy accumulation the ADE7754 is designed with a special energy accumula- tion mode which simplifies the calibration process. by using the on-chip zero-crossing detection, the ADE7754 accumu- lates the active power signal in the laenergy register for an integer number of half cycles, as shown in figure 29. the line active energy accumulation mode is always active. important: it is recommended to use this mode with only one phase selected. if several phases are selected, the amount accumulated can be smaller than it is supposed to be. each one of three phases zero-crossing detection can contrib- ute to the accumulation of the half line cycles. phase a, b and c zero crossings are respectively taken into account when counting the number of half line cycles by setting to logic one bits 4-6 of the mmode register. selecting phases for the zero crossing counting has also the effect of enabling the zero-crossing detection, zero-crossing time-out and pe- riod measurement for the corresponding phase as described in the zero-crossing detection paragraph. the number of half line cycles is specified in the lincyc register. lincyc is an unsigned 16-bit register. the ADE7754 can accumulate active power for up to 65535 combined half cycles. because the active power is integrated on an integer number of line cycles, the sinusoidal compo- nent is reduced to zero. this eliminates any ripple in the energy calculation. energy is calculated more accurately because of this precise timing control. at the end of an energy calibration cycle the lincyc flag in the interrupt status register is set. if the lincyc mask bit in the interrupt mask register is enabled, the  output will also go active low. + +  lpf1 from va adc zerocross detect calibration control lincyc[15:0]  + + power phase a power phase b power phase c lpf1 from vb adc zerocross detect lpf1 from vc adc zerocross detect accumulate active power during lincyc zero-crossings 51 0 51 0 laenergy[23:0] wdiv 23 0 mmode register bit 6 mmode register bit 4 mmode register bit 5 figure 29 - ADE7754 active energy calibration
rev. prg 01/03 preliminary technical data ADE7754 ? 25 ? thus the  line can also be used to signal the end of a calibration. from equations 8 and 12. et vidt vi f ft dt nt nt () cos  
    ! !  ! !   ! !  ! !    0 2 0 1 8 2 " (14) where n is a integer and t is the line cycle period. since the sinusoidal component is integrated over an integer number of line cycles, its value is always zero. therefore: e(t) vi dt 0 nt   0 (15) e(t) vint  (16) the total active power calculated by the ADE7754 in the line accumulation mode depends on the configuration of the watmod bits in the watmode register. each term of the formula can be disabled or enabled by the lwatsel bits of the watmode register. the different configurations are described in table iii. watmod lwatsel0 lwatsel1 lwatsel2 0v a x i a * + v b x i b * + v c x i c * 1v a x (i a * -i b * )+ 0 + v c x (i c * -i b * ) 2v a x (i a * -i b * )+ 0 + v c x i c * table iii - total line active energy calculation note: i a * , i b * and i c * represent the current channels samples after apgain correction and high-pass filtering. important: the line active energy accumulation uses the same signal path as the active energy accumulation. how- ever, the lsb size of these two registers is different. if the line active energy register and active energy register are accumulated during the same amount of time, the line active energy register will be 4 times bigger than the active energy register. the laenergy register is also used to accumulate the reactive energy by setting to logic one bit5 of the wavmode register (add. 0ch) - see reactive power calculation. when this bit is set to one, the accumulation of the active energy over half line cycles in the laenergy register is disabled and is done instead in the lvaenergy register. as the lvaenergy register is an unsigned value, the accumula- tion of the active energy in the lvaenergy register is unsigned in this mode. the reactive energy is then accumu- lated in the laenergy register - see figure 31. in this mode (reactive energy), the selection of the phases accumu- lated in the laenergy and lvaenergy registers is done by the lwatsel selection bits of the wattmode register. in normal mode, bit5 of wavmode register equals 0 the type of active power summation in the laenergy register (sum of absolute active power or arithmetic sum) is selected by bit2 of the gain register. in the mode where the active powers are accumulated in the lvaenergy register, bit5 of wavmode register equals 1, it should be noticed that the sum of several active power is always done ignoring the sign of the active powers. this is due to the unsigned nature of the lvaenergy register that does not allow signed addition. reactive power calculation reactive power is defined as the product of the voltage and current waveforms when one of this signal is phase shifted by 90 o at each frequency. it is defined mathematically in the ieee standard dictionary 100 as: reactive power v i nn n n     1 sin % where v n and i n are respectively the voltage and current rms values of the n th harmonics of the line frequency, and % n is the phase difference between the voltage and current n th harmon- ics. the resulting waveform is called the instantaneous reactive power signal (var). equation 19 gives an expression for the instantaneous reac- tive power signal in an ac system without harmonics when the phase of the current channel is shifted by -90 o . vt v t ( ) sin( )  2 11 % (17) it itit it ( ) sin( ) ? ( ) sin( )  22 2 11  & (18) var t v t i t () () ? ()  var t v i v i t ( ) sin( ) sin( )   11 1 11 1 2 %% (19) the average power over an integral number of line cycles (n) is given by the expression in equation 19. var nt var t dt v i nt   1 11 1 0 ( ) sin( ) % (20) where t is the line cycle period. var is referred to as the reactive power. note that the reactive power is equal to the dc component of the instan- taneous reactive power signal var(t) in equation 19. this is the relationship used to calculate reactive power in the ADE7754 for each phase. the instantaneous reactive power signal var(t) is generated by multiplying the current and voltage signals in each phase. in this case, the phase of the current channel is shifted by -89 o . the dc component of the instantaneous reactive power signal in each phase (a, b and c) is then extracted by a low pass filter to obtain the reactive power information on each phase. in a polyphase system, the total reactive power is simply the sum of the reactive power in all active phases. the different solutions available to process the total reactive power from the individual calcula- tion are discussed in the following paragraph. figure 30 shows the signal processing in each phase for the reactive power calculation in the ADE7754.
rev. prg 01/03 preliminary technical data ADE7754 ? 26 ? important: as the phase shift applied on the current channel is not -90 o as it should be ideally, the reactive power calculation done in the ADE7754 cannot be used directly for the reactive power calculation. consequently, it is recom- mended to use the ADE7754 reactive power measurement only to get the sign of the reactive power. the reactive power can be processed using the power triangle method. 1 hpf 24 lpf instantaneous reactive power signal - p(t) multiplier reactive power signal - p i v 28 -89 o figure 30 - reactive power signal processing total reactive power calculation the sum of the reactive powers coming from each phase gives the total reactive power consumption. different combinations of the three phases can be selected in the sum by setting bits 7-6 of the watmode register (mnemonic watmod[1:0]). each term of the formula can be disabled or enabled by the lwatsel bits of the watmode register. it should be noticed that in this mode, the lwatsel bits are also used to select the terms of the lvaenergy register. the different configurations are described in table iii. the accumulation of the reactive power in the laenergy register is different from the accumulation of the active power in the laenergy register. under the same signal conditions (e.g. current and voltage channels at full scale), if the accumulation of the active power with pf = 1 during 1 second is wh 1 and the accumulation of the reactive power with pf = 0 during the same time is varh 1 , then wh 1 = 9.546 x var 1 . note: i a * , i b * and i c * represent the current channels samples after apgain correction, high-pass filtering and -89 o phase shift in the case of reactive energy accumulation. reactive energy accumulation selection the ADE7754 accumulates the total reactive power signal in the laenergy register for an integer number of half cycles, as shown in figure 29. this mode is selected by setting to logic one bit5 of the wavmode register (add. 0ch). when this bit is set the accumulation of the active energy over half line cycles in the laenergy register is disabled and is done instead in the lvaenergy register. in this mode, the accumulation of the apparent energy over half line cycles in the lvaenergy is no-longer available - see figure 31 . active power reactive power apparent power 0 lvaenergy register bit5 wavmode register laenergy register 0 1 1 figure 31 - selection of reactive energy accumulation the features of the reactive energy accumulation are the same as the line active energy accumulation: each one of three phases zero-crossing detection can contrib- ute to the accumulation of the half line cycles. phase a, b and c zero crossings are respectively taken into account when counting the number of half line cycles by setting to logic one bits 4-6 of the mmode register. selecting phases for the zero crossing counting has also the effect of enabling the zero-crossing detection, zero-crossing time-out and pe- riod measurement for the corresponding phase as described int he zero-crossing detection paragraph. the number of half line cycles is specified in the lincyc register. lincyc is an unsigned 16-bit register. the ADE7754 can accumulate active power for up to 65535 combined half cycles. at the end of an energy calibration cycle the lincyc flag in the interrupt status register is set. if the lincyc mask bit in the interrupt mask register is enabled, the  output will also go active low. thus the  line can also be used to signal the end of a calibration. as explained in the reactive power paragraph, the purpose of the reactive energy calculation in the ADE7754 is not to give an accurate measurement of this value but to to provide the sign of the the reactive energy. the ADE7754 provides an accurate measurement of the apparent energy. as the active energy is also measured in the ADE7754, a simple mathematical formula can be used to extract the reactive energy. the evaluation of the sign of the reactive energy makes up the calculation of the reactive energy. reactive reactive energy sign power apparent energy active e    2 n nergy 2
rev. prg 01/03 preliminary technical data ADE7754 ? 27 ? 00000h d1b71h + 100% fs - 100% fs f2e48fh + 150% fs + 50% fs - 50% fs - 150% fs 13a929h 68db9h f97247h ec56d7h avagain[11:0] 000h 7ffh 800h apparent power voltage channel and current channel 0.5v / gai n figure 33 - apparent power calculation output range apparent power offset calibration each rms measurement includes an offset compensation register to calibrate and eliminate the dc component in the rms value -see current rms calculation and voltage rms calculation . the voltage and current rms values are then multiplied together in the apparent power signal processing. as no additional offsets are created in the multiplication of the rms values, there is no specific offset compensation in the apparent power signal processing. the offset compensa- tion of the apparent power measurement in each phase is done by calibrating each individual rms measurements. total apparent power calculation the sum of the apparent powers coming from each phase gives the total apparent power consumption. different com- binations of the three phases can be selected in the sum by setting bits 7-6 of the vamode register (mnemonic vamod[1:0]). figure 34 demonstrates the calculation of the total apparent power. i a v a phase a* total apparent power signal phase b* phase c* rms 24 aapgain avagain rms avgain i b v b rms 24 bapgain bvagain rms bvgain i c v c rms 24 capgain cvagain rms cvgain s + + 2 v arms v crms v arms v crms figure 34- total apparent power calculation apparent power calculation apparent power is defined as the maximum active power that can be delivered to a load. as vrms and irms are the effective voltage and current delivered to the load, the apparent power (ap) is defined as v rms x i rms . note that the apparent power is equal to the multiplication of the rms values of the voltage and current inputs. for a poly-phase system, the rms values of the current and voltage inputs of each phase (a, b and c) are multiplied together to obtain the apparent power information of each phase. the total apparent power is the sum of the apparent powers of all the phases. the different solutions available to process the total apparent power are discussed in the following para- graph. figure 32 illustrates graphically the signal processing in each phase for the calculation of the apparent power in the ADE7754. 24 0.5v / gain2 24 0.5v / gain1 current rms signal - i(t) voltage rms signal - v(t) multiplier apparent power signal - p i rms v rms 00h 00h d1b71h avag 12 24 1cf68ch 1cf68ch figure 32 - apparent power signal processing the apparent power is calculated with the current and voltage rms values obtained in the rms blocks of the ADE7754. shown in figure 33 is the maximum code (hexadecimal) output range of the apparent power signal for each phase. note that the output range changes depending on the contents of the apparent power gain registers but also on the contents of the active power gain and voltage gain registers ? see current rms calculation and voltage rms calculation . only the effect of the apparent power gain is shown on figure 33. the minimum output range is given when the apparent power gain register content is equal to 800h and the maximum range is given by writing 7ffh to the apparent power gain register. this can be used to calibrate the apparent power (or energy) calculation in the ADE7754 for each phase and also the total apparent energy -see total apparent power calculation .
rev. prg 01/03 preliminary technical data ADE7754 ? 28 ? the total apparent power calculated by the ADE7754 de- pends on the configuration of the vamod bits in the vamode register. each term of the formula can be disabled or enabled by the setting vasel bits respectively to logic 0 or logic 1 in the vamode register. the different configura- tions are described in table iv. va- vasel0 vasel1 vasel2 mod 0d v arms x i arms + v brms x i brms + v crms x i crms 1d v arms xi arms +(v arms+ v crms )/2xi brms + v crms x i crms 2d v arms x i arms + v arms x i brms + v crms x i crms table iv - total apparent power calculation note: v arms , v brms , v crms , i arms , i brms and i crms represent respectively the voltage and current channels rms values of the corresponding registers. for example, for vamod = 1, the exact formula that is used to process the apparent power is: total apparent power v i avag vv arms arms arms crms 
    1 2 12   
  
  2 1 2 1 2 12 12 i bvag vi cvag brms crms crms depending on the polyphase meter configuration, the appro- priate formula should be chosen to calculate the apparent energy. the american ansi c12.10 standard defines the different configurations of the meter. table v describes which mode should be chosen in these different configura- tions. ansi meter form vamod vasel 5s/13s 3-wire delta 0 3 or 5 or 6 6s/14s 4-wire wye 1 7 8s/15s 4-wire delta 2 7 9s/16s 4-wire wye 0 7 table v - meter form configuration different gain calibration parameters are offered in the ADE7754 to cover the calibration of the meter in different configurations. these registers, apgain, vgain and vagain, have different purposes in the signal processing of the ADE7754. apgain registers affect the apparent power calculation but should be used only for active power calibration. vagain registers are used to calibrate the apparent power calcula- tion. vgain registers have the same effect as vagain registers when vamod=0 or 2. they should be left at their default value in these modes. vgain registers should be used to compensate gain mismatches between channels in vamod=1. as mentioned before, the offset compensation of the phase apparent power calculation is done in each individual rms measurement signal processing -see apparent power offset com- pensation. apparent energy calculation the apparent energy is given as the integral of the apparent power. apparent energy apparent power t dt   () (21) the ADE7754 achieves the integration of the apparent power signal by continuously accumulating the apparent power signal in an internal non-readable 49-bit register. the apparent energy register (vaenergy[23:0]) represents the upper 24 bits of this internal register. this discrete time accumulation or summation is equivalent to integration in continuous time. equation 22 below expresses the relation- ship apparent energy lim apparent power nt t t n           0 0 () (22) where n is the discrete time sample number and t is the sample period. the discrete time sample period (t) for the accumulation register in the ADE7754 is 1.2s (12/10mhz). figure 35 shows a graphical representation of this discrete time integration or accumulation. the apparent power signal is continuously added to the internal register. this addition is a signed addition even if the apparent energy remains theoretically always positive. 48 0 + +  total apparent power 00000h d1b71h time (nt) t total apparent power are accumulated (integrated) in the apparent energy register apparent power signal - p t 48 0 vaenergy[23:0] vadiv 23 0 figure 35-ADE7754 apparent energy calculation the upper 49-bit of the internal register are divided by vadiv. if the value in the vadiv register is equal to 0 then the internal active energy register is divided by 1. vadiv is an 8-bit unsigned register. the upper 24-bit are then written in the 24-bit apparent energy register (vaenergy[23:0]). rvaenergy register (24 bits long) is provided to read the apparent energy. this register is reset to zero after a read operation.
rev. prg 01/03 preliminary technical data ADE7754 ? 29 ? figure 36 shows this apparent energy accumulation for full scale signals (sinusoidal) on the analog inputs. the three curves displayed, illustrate the minimum time it takes the energy register to roll-over when the individual va gain registers contents are all equal to 3ffh, 000h and 800h. the va gain registers are used to carry out an apparent power calibration in the ADE7754. as shown, the fastest integration time will occur when the va gain registers are set to maximum full scale, i.e., 3ffh. 00,0000h 7f,ffffh 80,0000h 3f,ffffh 40,0000h vaenergy[23:0] time ( seconds ) avag = bvag = cvag = 3ffh 131 262 393 65.5 196.5 327.5 avag = bvag = cvag = 000h avag = bvag = cvag = 800h figure 36 - energy register roll-over time for full-scale power (minimum & maximum power gain) note that the apparent energy register contents roll-over to full-scale negative (80,0000h) and continue increasing in value when the power or energy flow is positive - see figure 36. by using the interrupt enable register, the ADE7754 can be configured to issue an interrupt (  ) when the apparent energy register is half full (positive or negative). integration times under steady load as mentioned in the last section, the discrete time sample period (t) for the accumulation register is 1.2s (12/ clkin). with full-scale sinusoidal signals on the analog inputs and the va gain registers set to 000h, the average word value from each apparent power stage is d1b71h - see apparent power output range . the maximum value which can be stored in the apparent energy register before it over-flows is 2 23 -1 or ff,ffffh. as the average word value is added to the internal register which can store 2 48 - 1 or ffff,ffff,ffffh before it overflows, the integration time under these conditions with vadiv=0 is calculated as follows: time ffff ffff ffffh db h ss s   ,, .min 3171 1 2 131 2 11  when vadiv is set to a value different from 0, the integra- tion time varies as shown on equation 23. time = time wdiv=0 x vadiv (23) line apparent energy accumulation the ADE7754 is designed with a special apparent energy accumulation mode which simplifies the calibration process. by using the on-chip zero-crossing detection, the ADE7754 accumulates the apparent power signal in the lvaenergy register for an integral number of half cycles, as shown in figure 37. the line apparent energy accumulation mode is always active. each one of three phases zero-crossing detection can contrib- ute to the accumulation of the half line cycles. phase a, b and c zero crossings are taken into account when counting the number of half line cycle by setting to logic one bits 4-6 of the mmode register. selecting phases for the zero crossing counting has also the effect of enabling the zero-crossing detection, zero-crossing time-out and period measure- ment for the corresponding phase as described in the zero-crossing detection paragraph. the number of half line cycles is specified in the lincyc register. lincyc is an unsigned 16-bit register. the ADE7754 can accumulate apparent power for up to 65535 combined half cycles. because the apparent power is inte- grated on the same integral number of line cycles as the line active energy register, these two values can be compared easily - see energy scaling. the active and apparent energy are calculated more accurately because of this precise timing control and provide all the information needed for reactive power and power factor calculation. at the end of an energy calibration cycle the lincyc flag in the interrupt status register is set. if the lincyc mask bit in the interrupt mask register is enabled, the  output will also go active low. thus the  line can also be used to signal the end of a calibration. + +  calibration control lincyc[15:0]  + + apparent power phase a apparent power phase b apparent power phase c accumulate apparent power during lincyc zero-crossings 48 0 48 0 lvaenergy[23:0] vadiv 23 0 lpf1 from va adc zerocross detect lpf1 from vb adc zerocross detect lpf1 from vc adc zerocross detect mmode register bit 6 mmode register bit 4 mmode register bit 5 figure 37 - ADE7754 apparent energy calibration
rev. prg 01/03 preliminary technical data ADE7754 ? 30 ? the total apparent power calculated by the ADE7754 in the line accumulation mode depends on the configuration of the vamod bits in the vamode register. each term of the formula can be disabled or enabled by the lvasel bits of the vamode register. the different configurations are de- scribed in table vi. va- vasel0 vasel1 vasel2 mod 0d v arms x i arms + v brms x i brms + v crms x i crms 1d v arms xi arms +(v arms+ v crms )/2xi brms + v crms x i crms 2d v arms x i arms + v arms x i brms + v crms x i crms table vi - total line apparent energy calculation the line apparent energy accumulation uses the same signal path as the apparent energy accumulation. the lsb size of these two registers is equivalent. the ADE7754 accumulates the total reactive power signal in the laenergy register. this mode is selected by setting to logic one bit5 of the wavmode register (add. 0ch). when this bit is set the accumulation of the active energy over half line cycles in the laenergy register is disabled and is done instead in the lvaenergy register. in this mode, the accumulation of the apparent energy over half line cycles in the lvaenergy is no-longer available - see figure 31. as the lvaenergy register is an unsigned value, the accumulation of the active energy in the lvaenergy register is unsigned. in this mode (reactive energy), the selection of the phases accumulated in the laenergy and lvaenergy registers is done by the lwatsel selection bits of the watmode register. energies scaling the ADE7754 provides measurements of the active, reac- tive and apparent energies. these measurements do not have the same scaling and cannot be compared directly to each others. when measuring the different energies with the ADE7754 with 50hz signals at different power factor, the ratio between the energies is: pf=1 pf=0.707 pf=0 active w h wh x 0.707 0 energy reactive 0 wh x 0.707 / 9.546 wh / 9.546 energy apparent wh / 3.657 wh / 3.657 wh / 3.657 energy check sum register the ADE7754 has a check sum register (checksum[5:0]) to ensure the data bits received in the last serial read operation are not corrupted. the 6-bit checksum register is reset before the first bit (msb of the register to be read) is put on the dout pin. during a serial read operation, when each data bit becomes available on the rising edge of sclk, the bit will be added to the checksum register. in the end of the serial read operation, the content of the checksum register will equal to the sum of all ones in the register previously read. using the checksum register, the user can determine if an error has occurred during the last read operation. note that a read to the checksum register will also generate a checksum of the checksum register itself. content of register (n-bytes) dout  checksum register addr: 3eh figure 38 - checksum register for serial interface read
rev. prg 01/03 preliminary technical data ADE7754 ? 31 ? ADE7754 serial interface ADE7754 has a built-in spi interface. the serial interface of the ADE7754 is made of four signals sclk, din, dout and  . the serial clock for a data transfer is applied at the sclk logic input. this logic input has a schmidt- trigger input structure, which allows slow rising (and falling) clock edges to be used. all data transfer operations are synchronized to the serial clock. data is shifted into the ADE7754 at the din logic input on the falling edge of sclk. data is shifted out of the ADE7754 at the dout logic output on a rising edge of sclk. the  logic input is the chip select input. this input is used when multiple devices share the serial bus. a falling edge on  also resets the serial interface and places the ADE7754 in communica- tions mode. the  input should be driven low for the entire data transfer operation. bringing  high during a data transfer operation will abort the transfer and place the serial bus in a high impedance state. the  logic input may be tied low if the ADE7754 is the only device on the serial bus. however with  tied low, all initiated data transfer opera- tions must be fully completed, i.e., the lsb of each register must be transferred as there is no other way of bringing the ADE7754 back into communications mode without resetting the entire device, i.e., setting the  pin logic low. all the ADE7754 functionality is accessible via several on- chip registers ? see figure 39. the contents of these registers can be updated or read using the on-chip serial interface. after power-on or toggling the  pin low or a falling edge on  , the ADE7754 is placed in communications mode. in communications mode the ADE7754 expects the first communication to be a write to the internal communi- cations register. the data written to the communications register contains the address and specifies the next data transfer to be a read or a write command. therefore all data transfer operations with the ADE7754, whether a read or a write, must begin with a write to the communications register. communications register register # 1 register # 2 register # 3 register # n-1 register # n in out register address decode din dout in out in out in out in out figure 39 ? addressing ADE7754 registers via the communications register the communications register is an eight bit write only register. the msb determines whether the next data transfer operation is a read or a write. the 6 lsbs contain the address of the register to be accessed. see ADE7754 communications register for a more detailed description. figure 40 and figure 41 show the data transfer sequences for a read and write operation respectively. on completion of a data transfer (read or write) the ADE7754 once again enters communications mode, i.e. the next in- struction followed must be a write to the communications register. communications register write cs din dout sclk 0 0 address multibyte read data figure 40 ? reading data from the ADE7754 via the serial interface communications register write cs din sclk 1 0 address multibyte write data figure 41 ? writing data to the ADE7754 via the serial interface a data transfer is completed when the lsb of the ADE7754 register being addressed (for a write or a read) is transferred to or from the ADE7754. ADE7754 serial write operation the serial write sequence takes place as follows: with the ADE7754 in communications mode and the  input logic low, a write to the communications register first takes place. the msb of this byte transfer must be set to 1, indicating that the next data transfer operation is a write to the register. the six lsbs of this byte contain the address of the register to be written to. the ADE7754 starts shifting in the register data on the next falling edge of sclk. all remaining bits of register data are shifted in on the falling edge of subsequent sclk pulses ? see figure 42. as explained earlier the data write is initiated by a write to the communications register followed by the data. during a data write operation to the ADE7754, data is transferred to all on- chip registers one byte at a time. after a byte is transferred into the serial port, there is a finite time duration before the content in the serial port buffer is transferred to one of the ADE7754 on-chip registers. although another byte transfer to the serial port can start while the previous byte is being transferred to the destination register, this second byte transfer should not finish until at least tbd after the end of the previous byte transfer. this functionality is expressed in the timing specification t 6 - see figure 42. if a write operation is aborted during a byte transfer (  brought high), then that byte will not be written to the destination register. destination registers may be up to 3 bytes wide ? see ADE7754 register descriptions . hence the first byte shifted into the serial port at din is transferred to the msb (most significant byte) of the destination register. if the destination register is 12 bits wide, for example, a two-byte data transfer must take place. the data is always assumed to be right justified, therefore in this case, the four msbs of the first byte would be ignored and the 4 lsbs of the first byte written to the ADE7754 would be the 4msbs of the 12-bit word. figure 43 illustrates this example.
rev. prg 01/03 preliminary technical data ADE7754 ? 32 ? cs sclk din a4 a3 a2 a1 a0 db7 most significant byte t 1 t 2 t 3 t 4 t 5 t 8 1 db0 db7 db0 t 6 least significant byte t 7 t 7 0 command byte a5 figure 42 ? serial interface write timing diagram sclk xxxx db11 db10 db9 db8 din most significant byte db3 db2 db1 db0 db7 db6 db5 db4 least significant byte figure 43 ? 12 bit serial write operation ADE7754 serial read operation during a data read operation from the ADE7754 data is shifted out at the dout logic output on the rising edge of sclk. as was the case with the data write operation, a data read must be preceded with a write to the communications register. with the ADE7754 in communications mode and  logic low an eight bit write to the communications register first takes place. the msb of this byte transfer must be a 0, indicating that the next data transfer operation is a read. the six lsbs of this byte contain the address of the register which is to be read. the ADE7754 starts shifting out of the register data on the next rising edge of sclk ? see figure 44. at this point the dout logic output switches from high impedance state and starts driving the data bus. all remaining bits of register data are shifted out on subsequent sclk rising edges. the serial interface enters communications mode again as soon as the read has been completed. the dout logic output enters a high impedance state on the falling edge of the last sclk pulse. the read operation may be aborted by bringing the  logic input high before the data transfer is completed. the dout output enters a high impedance state on the rising edge of  . when an ADE7754 register is addressed for a read operation, the entire contents of that register are transferred to the serial port. this allows the ADE7754 to modify its on-chip registers without the risk of corrupting data during a multi byte transfer. note: when a read operation follows a write operation, the read command (i.e., write to communications register) should not happen for at least tbd after the end of the write operation. if the read command is sent within tbd of the write operation, the last byte of the write operation may be lost. the is given as timing specification t 15 . cs sclk din a4 a3 a2 a1 a0 t 1 t 11 t 12 t 9 db7 dout t 13 db0 db0 db7 t 10 t 14 most significant byte least significant byte 00 command byte a5 figure 44 ? serial interface read timing diagram
rev. prg 01/03 preliminary technical data ADE7754 ? 33 ? ADE7754 interrupts ADE7754 interrupts are managed through the interrupt status register (status[15:0], address 10h) and the inter- rupt mask register (mask[15:0], address 0fh). when an interrupt event occurs in the ADE7754, the corresponding flag in the interrupt status register is set to a logic one - see ADE7754 interrupt status register . if the mask bit for this interrupt in the interrupt mask register is logic one, then the  logic output goes active low. the flag bits in the interrupt status register are set irrespective of the state of the mask bits. in order to determine the source of the interrupt, the system master (mcu) should perform a read from the reset inter- rupt status register with reset. this is achieved by carrying out a read from address 11h. the  output will go logic high on completion of the interrupt status register read command ? see interrupt timing . when carrying out a read with reset the ADE7754 is designed to ensure that no interrupt events are missed. if an interrupt event occurs just as the interrupt status register is being read, the event will not be lost and the  logic output is guaranteed to go high for the duration of the interrupt status register data transfer before going logic low again to indicate the pending interrupt. using the ADE7754 interrupts with an mcu shown in figure 45 is a timing diagram which illustrates a suggested implementation of ADE7754 interrupt manage- ment using an mcu. at time t 1 the  line will go active low indicating that one or more interrupt events have oc- curred in the ADE7754. the  logic output should be tied to a negative edge triggered external interrupt on the mcu. on detection of the negative edge, the mcu should be configured to start executing its interrupt service routine (isr). on entering the isr, all interrupts should be disabled using the global interrupt mask bit. at this point the mcu external interrupt flag can be cleared in order to capture interrupt events which occur during the current isr. when the mcu interrupt flag is cleared, a read from the reset interrupt status register with reset is carried out. this will cause the  line to be reset logic high ( t 2 ) ? see interrupt timing . the reset interrupt status register contents are used to determine the source of the interrupt(s) and hence the appropriate action to be taken. if a subsequent interrupt event occurs during the isr ( t 3 ), that event will be recorded by the mcu external interrupt flag being set again. on returning from the isr, the global interrupt mask bit will be cleared (same instruction cycle) and the external interrupt flag will cause the mcu to jump to its isr once again. this will ensure that the mcu does not miss any external interrupts. interrupt timing the ADE7754 serial interface section should be reviewed first before reviewing the interrupt timing. as previously de- scribed, when the  output goes low the mcu isr must read the interrupt status register in order to determine the source of the interrupt. when reading the interrupt status register contents, the  output is set high on the last falling edge of sclk of the first byte transfer (read interrupt status register command). the  output is held high until the last bit of the next 8-bit transfer is shifted out (interrupt status register contents). see figure 46. if an interrupt is pending at this time, the  output will go low again. if no interrupt is pending the  output will remain high. irq t 1 jump to isr global int. mask clear mcu int. flag read status with reset (11h) isr action ( based on status contents) isr return global int. mask reset t 2 t 3 mcu int. flag set jump to isr program sequence figure 45 ? ADE7754 interrupt management cs sclk din t 1 t 11 t 12 t 9 db15 dout db0 db8 db7 000 read status register command 0 1 00 1 irq status register contents figure 46 ? ADE7754 interrupt timing
rev. prg 01/03 preliminary technical data ADE7754 ? 34 ? accessing the ADE7754 on-chip registers all ADE7754 functionality is accessed via the on-chip registers. each register is accessed by first writing to the communications register and then transferring the register data. for a full description of the serial interface protocol, see serial interface section of this data sheet. communications register the communications register is an eight bit, write-only register which controls the serial data transfer between the ADE7754 and the host processor. all data transfer operations must begin with a write to the communications register. the data written to the communications register determines whether the next operation is a read or a write and which register is being accessed. table vii below outlines the bit designations for the communications register. table vii : communications register bit bit description location mnemonic 0 to 5 a0 to a5 the six lsbs of the communications register specify the register for the data transfer operation. table viii lists the address of each ADE7754 on-chip register. 6 reserved this bit is unused and should be set to zero. 7w/  when this bit is a logic one the data transfer operation immediately following the write to the communications register will be interpreted as a write to the ADE7754. when this bit is a logic zero the data transfer operation immediately following the write to the communications register will be interpreted as a read operation. db0 w/r a4 a3 a2 a1 a0 0 db1 db2 db3 db4 db5 db6 db7 a5
rev. prg 01/03 preliminary technical data ADE7754 ? 35 ? table viii. ADE7754 register list address default [a5:a0] name r/w* length value description 00h reserved - reserved. 01h aenergy r 24 0 active energy register. active power is accumulated over time in an internal register. the aenergy register is a read only regis- ter that reads this internal register and can hold a minimum of 88 seconds of active energy information with full-scale analog inputs before it overflows - see energy calculation . bit 7 to 3 of the watmode register determine how the active energy is pro- cessed from the six analog inputs - see table xiv. 02h raenergy r 24 0 same as the aenergy register, except that the internal register is reset to zero following a read operation. 03h laenergy r 24 0 line accumulation active energy register. the instantaneous active power is accumulated in this read-only register over the lincyc number of half line cycles. bit 2 to 0 of the watmode register determines, how the line accumulation active energy is processed from the six analog inputs - see table xiv. 04h vaenergy r 24 0 va energy register. apparent power is accumulated over time in this read-only register. bit 7 to 3 of the vamode register deter- mines, how the apparent energy is processed from the six analog inputs - see table xv. 05h rvaenergy r 24 0 same as the vaenergy register except that the register is reset to zero following a read operation. 06h lvaenergy r 24 0 apparent energy register. the instantaneous apparent power is accumulated in this read-only register over the lincyc number of half line cycles. bit 2 to 0 of the vamode register determines how the apparent energy is processed from the six analog inputs - see table xv. 07h period r 15 0 period of the line input estimated by zero-crossing processing. data bits 0 to 1 and 4 to 6 of the mmode register determines the voltage channel used for period calculation - see table xii. 08h temp r 8 0 temperature register. this register contains the result of the lat- est temperature conversion. please refer to temperature measurement section on this datasheet for details on how to interpret the con- tent of this register. 09h wform r 24 0 waveform register. this register contains the digitized waveform of one of the six analog inputs. the source is selected by data bits 0 to 2 in the wavmode register - see table xiii. 0ah opmode r/w 8 4 operational mode register. this register defines the general configuration of the ADE7754. see table ix . 0bh mmode r/w 8 70h measurement mode register. this register defines the channel used for period and peak detection measurements. see table xii . 0ch wavmode r/w 8 0 waveform mode register. this register defines the channel and the sampling frequency used in waveform sampling mode. see table xiii . 0dh watmode r/w 8 3fh this register configures the formula applied for the active energy and line active energy measurements. see table xiv . 0eh vamode r/w 8 3fh this register configures the formula applied for the apparent energy and line apparent energy measurements. see table xv . 0fh mask r/w 16 0 irq mask register. it determines if an interrupt event will gener- ate an active-low output at  pin - see table xvi . 10h status r 16 0 irq status register. this register contains information regarding the source of ADE7754 interrupts - see table xvii . 11h rstatus r 16 0 same as the status register. except that its contents are reset to zero (all flags cleared) after a read operation.
rev. prg 01/03 preliminary technical data ADE7754 ? 36 ? address default [a5:a0] name r/w* length value description 12h zxtout r/w 16 ffffh zero cross time out register. if no zero crossing is detected within a time period specified by this register the interrupt request line (irq) will go active low for the corresponding line voltage. the maximum time-out period is 2.3 seconds - see zero crossing detection . 13h lincyc r/w 16 ffffh line cycle register. the content of this register sets the number of half line cycles while the active energy and the appar- ent energy are accumulated in the laenergy and lvaenergy registers - see energy calibration . 14h sagcyc r/w 8 ffh sag line cycle register. this register specifies the number of consecutive half-line cycles where voltage channel input falls be- low a threshold level. this register is common to the three line voltage sag detection. the detection threshold is specified by saglvl register - see voltage sag detection . 15h saglvl r/w 8 0 sag voltage level. this register specifies the detection threshold for sag event. this register is common to the three line voltage sag detection. see the description of sagcyc register for de- tails. 16h vpeak r/w 8 ffh voltage peak level. this register sets the level of the voltage peak detection. if the selected voltage phase exceeds this level, the pkv flag in the status register is set - see table xii . 17h ipeak r/w 8 ffh current peak level. this register sets the level of the current peak detection. if the selected current phase exceeds this level, the pki flag in the status register is set - see table xii . 18h gain r/w 8 0 pga gain register. this register is used to adjust the gain selec- tion for the pga in current and voltage channels - see analog inputs and table x . this register is also used to configuration of the active energy accumulation - no-load threshold and sum of absolute values. 19h a w g r/w 12 0 phase a active power gain register. this register calculation can be calibrated by writing to this register. the calibration range is 50% of the nominal full scale active power. the resolution of the gain adjust is 0.0244% / lsb. 1ah b w g r/w 12 0 phase b active power gain 1bh c w g r/w 12 0 phase c active power gain 1ch avag r/w 12 0 va gain register. this register calculation can be calibrated by writing this register. the calibration range is 50% of the nominal full scale real power. the resolution of the gain adjust is 0.02444% / lsb. 1dh bvag r/w 12 0 phase b va gain 1eh cvag r/w 12 0 phase c va gain 1fh aphcal r/w 5 0 phase a phase calibration register 20h bphcal r/w 5 0 phase b phase calibration register 21h cphcal r/w 5 0 phase c phase calibration register 22h aapos r/w 12 0 phase a power offset calibration register 23h bapos r/w 12 0 phase b power offset calibration register 24h capos r/w 12 0 phase c power offset calibration register 25h cfnum r/w 12 0h cf scaling numerator register. the content of this register is used in the numerator of cf output scaling. 26h cfden r/w 12 3fh cf scaling denominator register. the content of this register is used in the denominator of cf output scaling. 27h wdiv r/w 8 0 active energy register divider 28h vadiv r/w 8 0 apparent energy register divider 29h airms r 24 0 phase a current channel rms register. the register contains the rms component of one input of the current channel. the source is selected by data bits in the mode register. 2ah birms r 24 0 phase b current channel rms register. 2bh cirms r 24 0 phase c current channel rms register.
rev. prg 01/03 preliminary technical data ADE7754 ? 37 ? address default [a5:a0] name r/w* length value description 2ch avrms r 24 0 phase a voltage channel rms register. 2dh bvrms r 24 0 phase b voltage channel rms register. 2eh cvrms r 24 0 phase c voltage channel rms register. 2fh airmsos r/w 12 0 phase a cu rrent rms offset correction register. 30h birmsos r/w 12 0 phase b current rms offset correction register. 31h cirmsos r/w 12 0 phase c current rms offset correction register. 32h avrmsos r/w 12 0 phase a voltage rms offset correction register. 33h bvrmsos r/w 12 0 phase b voltage rms offset correction register. 34h cvrmsos r/w 12 0 phase c voltage rms offset correction register. 35h aapgain r/w 12 0 phase a active power gain adjust. the active power accu- mulation of the phase a can be calibrated by writing to this register. the calibration range is 50% of the nominal full scale of the active power. the resolution of the gain is 0.0244% / lsb - see current channel gain adjust 36h bapgain r/w 12 0 phase b active power gain adjust 37h capgain r/w 12 0 phase c active power gain adjust 38h avgain r/w 12 0 phase a voltage rms gain. the apparent power accumula- tion of the phase a can be calibrated by writing to this register. the calibration range is 50% of the nominal full scale of the apparent power. the resolution of the gain is 0.0244% / lsb - see voltage rms gain adjust 39h bvgain r/w 12 0 phase b voltage rms gain 3ah cvgain r/w 12 0 phase c voltage rms gain 3bh reserved 3dh 3eh chksum r 8 check sum register. the content of this register represents the sum of all ones of the latest register read from the spi port. 3fh version r 8 1 version of the die *r/w: read/write capability of the register. r: read only register. r/w: register that can be both read and written.
rev. prg 01/03 preliminary technical data ADE7754 ? 38 ? operational mode register (0ah) the general configuration of the ADE7754 is defined by writing to the opmode register. table ix below summarizes the functionality of each bit in the opmode register . table ix opmode register bit bit default location mnemonic value description 0 dishpf 0 the hpf (high pass filter) in all current channel inputs are disabled when this bit is set. 1 dislpf 0 the lpfs (low pass filter) in all current channel inputs are disabled when this bit is set. 2 discf 1 the frequency output cf is disabled when this bit is set. 3-5 dismod 0 by setting these bits, ADE7754 ? s a/d converters can be turned off. in normal operation, these bits should be left at logic zero. dismod2 dismod1 dismod0 0 0 0 normal operation 1 0 0 normal operation, by setting this bit to logic 1 the analog inputs to current channel are connected to the adc for voltage channel and the analog inputs to voltage channel are connected to the adc for current channel 0 0 1 current channel a/d converters off 1 0 1 current channel a/d converters off + chan nels swapped 0 1 0 voltage channel a/d converters off 1 1 0 voltage channel a/d converters off + chan nels swapped 0 1 1 ADE7754 in sleep mode 1 1 1 ADE7754 powered down 6 swrst 0 software chip reset. a data transfer to the ADE7754 should not take place for at least 18s after a software reset. 7 reserved - this is intended for factory testing only and should be left at zero.
rev. prg 01/03 preliminary technical data ADE7754 ? 39 ? gain register (18h) the gain of the analog inputs and the mode of accumulation of the active energies in the ADE7754 are defined by writing to the gain register. table x below summarizes the functionality of each bit in the gain register . table x gain register bit bit default location mnemonic value description 0-1 pga1 0 t hese bits are used to select the gain of the current channels inputs. bit 1 bit 0 0 0 pga1=1 0 1 pga1=2 1 0 pga1=4 0 0 reserved 2 
 0 the sum of the absolute active energies is done in the anergy and laenergy registers when this bit is set to logic one. the regular sum is done when this bit is set to logic zero - default mode. 3 noload 0 the active energy of each phase is not accumulated in the total active energy registers if the instantaneous active power is lower than the no-load threshold when this bit is set to logic zero, this mode is selected by default. 4 reserved - this is intended for factory testing only and should be left at zero. 5-6 pga2 0 these bits are used to select the gain of the voltage channels inputs. bit 6 bit 5 0 0 pga2=1 0 1 pga2=2 1 0 pga2=4 0 0 reserved 7 reserved - this is intended for factory testing only and should be left at zero. cfnum register (25h) the cf scaling numerator and the sign of the active energy per phase are defined by writing/reading to the cfnum register. table xi below summarizes the functionality of each bit in the cfnum register . table xi cfnum register bit bit default location mnemonic value description 0-bh cfn 0 cf scaling numerator register. the content of this register is used in the numerator of cf output scaling. ch   0 the sign of the phase a instantaneous active power is available in this bit. logic zero and logic one correspond to positive and negative active power respectively. the functionality of this bit is enabled by setting bit 5 of the watmode register to logic one. when disabled nega is equal to its default value. dh 
0 the sign of the phase b instantaneous active power is available in this bit. logic zero and logic one correspond to positive and negative active power respectively. the functionality of this bit is enabled by setting bit 4 of the watmode register to logic one. when disabled negb is equal to its default value. eh   0 the sign of the phase c instantaneous active power is available in this bit. logic zero and logic one correspond to positive and negative active power respectively. the functionality of this bit is enabled by setting bit 3 of the watmode register to logic one. when disabled negc is equal to its default value. fh reserved
rev. prg 01/03 preliminary technical data ADE7754 ? 40 ? measurement mode register (0bh) the configuration of the period and peak measurements made by the ADE7754 are defined by writing to the mmode register. table xii below summarizes the functionality of each bit in the mmode register . table xii mmode register bit bit default location mnemonic value description 0-1 perdsel 0 these bits are used to select the source of the measurement of the voltage line period. bit 1 bit 0 source 0 0 phase a 0 1 phase b 1 0 phase c 1 1 reserved 2-3 peaksel 0 these bits select the line voltage and current phase used for the peak detection. if the selected line voltage is above the level defined in the pkvlvl register, the pkv flag in the interrupt status register is set. if the selected current input is above the level defined in the pkilvl register, the pki flag in the interrupt status register is set. bit 3 bit 2 source 0 0 phase a 0 1 phase b 1 0 phase c 1 1 reserved 4-6 zxsel 7 these bits select the phases used for counting the number of zero crossing in the line active and apparent accumulation modes as well as enabling these phases for the zero- crossing time out detection, zero-crossing, period measurement and sag detection. bit 4, 5 and 6 select phase a, phase b and phase c respectively. 7 reserved waveform mode register (0ch) the waveform sampling mode of the ADE7754 is defined by writing to the wavmode register. table xiii below summarizes the functionality of each bit in the wavmode register . table xiii wavmode register bit bit default location mnemonic value description 0-2 wavsel 0 these bits are used to select the source of the waveform sample bit 2 bit 1 bit 0 source 0 0 0 voltage phase a 0 0 1 voltage phase b 0 1 0 voltage phase c 0 1 1 current phase a 1 0 0 current phase b 1 0 1 current phase c 1 1 0 or 1 reserved 3-4 dtrt 0 these bits are used to select the waveform sampling update rate bit 4 bit 3 update rate 0 0 26.0ksps (clkin/3/128) 0 1 13.0ksps (clkin/3/256) 1 0 6.5ksps (clkin/3/512) 1 1 3.3ksps (clkin/3/1024) 5 lvarsel 0 this bit is used to enable the accumulation of the line var energy into the laenergy register and of the line active energy into the lvaenergy register.
rev. prg 01/03 preliminary technical data ADE7754 ? 41 ? watt mode register (0dh) the phases involved in the active energy measurement of the ADE7754 are defined by writing to the watmode register. table xiv below summarizes the functionality of each bit in the watmode register . table xiv watmode register bit bit default location mnemonic value description 0-2 lwatsel 7 these bits are used to select separately each part of the formula, depending on the line active energy measurement method. the behavior of these bits is the same as watsel bits. bit 2 selects the first term of the formula and so on. 3-5 watsel 7 these bits are used to select separately each part of the formula, depending on the active energy measurement method. these bits are also used to enable the negative power detection available in bits 12-14 of cfnum register - see table xi. setting bit 5 to logic one selects the first term of the formula (vaxia or vax(ia-ib)). setting bit 4 to logic one selects the second term of the formula (vbxib or 0 depending on watmod configu- ration). setting bit 3 to logic one selects the last term of the formula (vcxic or vcx(ic-ib)). any combination of these bits are possible to address calibration and operational needs. 6-7 watm 0 these bits are used to select the formula used for active energy calculation watm1 wavm0 active energy calculation 0 0 vaxia + vbxib + vcxic 0 1 vax(ia-ib) + 0 + vcx(ic-ib) 1 0 vax(ia-ib) + 0 + vcxic 1 1 reserved va mode register (0eh) the phases involved in the apparent energy measurement of the ADE7754 are defined by writing to the vamode register. table xv below summarizes the functionality of each bit in the vamode register . table xv vamode register bit bit default location mnemonic value description 0-2 lvasel 7 these bits are used to select separately each part of the formula, depending on the line apparent energy measurement method. the behavior of these bits is the same as vasel bits. bit 2 selects the first term of the formula and so on. 3-5 vasel 7 these bits are used to select separately each part of the formula, depending on the apparent energy measurement method. setting bit 5 to logic one selects the first term of the formula (va rms xia rms ). setting bit 4 to logic one selects the second term of the formula (vb rms xib rms or (va rms +vc rms )/2xib rms or va rms xib rms depending on vamod configu- ration). setting bit 3 to logic one selects the first term of the formula (vc rms xic rms ). any combination of these bits are possible to address calibration and operational needs. 6-7 vamod 0 these bits are used to select the formula used for active energy calculation vamod1 vamod0 apparent energy calculation 00va rms xia rms +vb rms xib rms +vc rms xic rms 01va rms xia rms +(va rms +vc rms )/2xib rms +vc rms xic rms 10va rms xia rms +va rms xib rms +vc rms xic rm 1 1 reserved
rev. prg 01/03 preliminary technical data ADE7754 ? 42 ? interrupt mask register (0fh) when an interrupt event occurs in the ADE7754, the  logic output goes active low if the mask bit for this event is logic one in this register. the irq logic output is reset to its default collector open state when the rstatus register is read. the following describes the function of each bit in the interrupt mask register. table xvi mask register bit interrupt default location flag value description 0 aehf 0 enables an interrupt when there is a 0 to 1 transition of the msb of the aenergy register (i.e. the aenergy register is half-full) 1 saga 0 enables an interrupt when there is a sag on the line voltage of the phase a 2 sagb 0 enables an interrupt when there is a sag on the line voltage of the phase b 3 sagc 0 enables an interrupt when there is a sag on the line voltage of the phase c 4 zxtoa 0 enables an interrupt when there is a zero crossing time out detection on phase a 5 zxtob 0 enables an interrupt when there is a zero crossing time out detection on phase b 6 zxtoc 0 enables an interrupt when there is a zero crossing time out detection on phase c 7 zxa 0 enables an interrupt when there is a rising zero crossing in voltage channel of the phase a ? zero crossing detection 8 z x b 0 enables an interrupt when there is a rising zero crossing in voltage channel of the phase b ? zero crossing detection 9 z x c 0 enables an interrupt when there is a rising zero crossing in voltage channel of the phase c ? zero crossing detection ah lenergy 0 enables an interrupt when the laenergy and lvaenergy accumulations over lincyc are finished bh reserved ch pkv 0 enables an interrupt when the voltage input selected in the mmode register is above the value in the pkvlvl register d h pki 0 enables an interrupt when the current input selected in the mmode register is above the value in the pkilvl register. eh wfsm 0 enables an interrupt when a data is present in the waveform register. fh vaehf 0 enables an interrupt when there is a 0 to 1 transition of the msb of the vaenergy register (i.e. the vaenergy register is half-full) interrupt mask register* addr: 0fh 0 1 2 3 4 5 6 7 00 0 0 0 0 0 0 8 9 a b c d e f 00 0 0 0 0 0 0 vaehf (apparent energy register half full) aehf (active energy register half full) sag (sag event detect) wfmp (new waveform sample ready) *register contents show power on defaults zx (zero crossing time out detection) pkv lenergy ( end of the laenergy and lvaenergy accumulation ) zx (zero crossing detection) reserved pki (current channel peak detection) (voltage channel peak detection)
rev. prg 01/03 preliminary technical data ADE7754 ? 43 ? interrupt status register (10h) / reset interrupt status register (11h) the interrupt status register is used to determine the source of an interrupt event. when an interrupt event occurs in the ADE7754, the corresponding flag in the interrupt status register is set logic high. the  pin will go active low if the corresponding bit in the interrupt mask register is set logic high. when the mcu services the interrupt, it must first carry out a read from the interrupt status register to determine the source of the interrupt. all the interrupts in the interrupt sta tus register stay at their logic high state after an event occurs. the state of the interrupt bit in the interrupt status register is reset to its default value once the reset interrupt status register is read. table xvii status register bit interrupt default event location flag value description 0 aehf 0 indicates that an interrupt was caused by the 0 to 1 transition of the msb of the aenergy register (i.e. the aenergy register is half-full) 1 saga 0 indicates that an interrupt was caused by a sag on the line voltage of the phase a 2 sagb 0 indicates that an interrupt was caused by a sag on the line voltage of the phase b 3 sagc 0 indicates that an interrupt was caused by a sag on the line voltage of the phase c 4 zxtoa 0 indicates that an interrupt was caused by a missing zero crossing on the line voltage of the phase a 5 zxtob 0 indicates that an interrupt was caused by a missing zero crossing on the line voltage of the phase b 6 zxtoc 0 indicates that an interrupt was caused by a missing zero crossing on the line voltage of the phase c 7 zxa 0 indicates a detection of rising zero crossing in the voltage channel of the phase a 8 z x b 0 indicates a detection of rising zero crossing in the voltage channel of the phase b 9 z x c 0 indicates a detection of rising zero crossing in the voltage channel of the phase c ah lenergy 0 in line energy accumulation, it indicates the end of an integration over an integer number of half line cycles (lincyc) ? see energy calibration bh reset 0 indicates that the ADE7754 has been reset ch pkv 0 indicates that an interrupt was caused when the selected voltage input is above the value in the pkvlv register. d h pki 0 indicates that an interrupt was caused when the selected current input is above the value in the pkilv register. eh wfsm 0 indicates that new data is present in the waveform register. fh vaehf 0 indicates that an interrupt was caused by the 0 to 1 transition of the msb of the vaenergy register (i.e. the vaenergy register is half-full) interrupt status register* addr: 10h 0 1 2 3 4 5 6 7 00 0 0 0 0 0 0 8 9 a b c d e f 00 0 0 0 0 0 0 vaehf (apparent energy register half full) aehf (active energy register half full) sag (sag event detect) wfmp (new waveform sample ready) *register contents show power on defaults zx (zero crossing time out detection) pkv lenergy ( end of the laenergy and lvaenergy accumulation ) zx (zero crossing detection) reset pki (current channel peak detection) (voltage channel peak detection)
rev. prg 01/03 preliminary technical data ADE7754 ? 44 ? outline dimensions shown in inches and (mm) 24-lead soic (rw-24) 0.0125 (0.32) 0.0091 (0.23) 8  0  0.0291 (0.74) 0.0098 (0.25)  45  0.0500 (1.27) 0.0157 (0.40) seating plane 0.0118 (0.30) 0.0040 (0.10) 0.0192 (0.49) 0.0138 (0.35) 0.1043 (2.65) 0.0926 (2.35) 0.0500 (1.27) bsc 24 13 12 1 0.4193 (10.65) 0.3937 (10.00) 0.2992 (7.60) 0.2914 (7.40) pin 1 0.6141 (15.60) 0.5985 (15.20)


▲Up To Search▲   

 
Price & Availability of ADE7754

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X